Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0
hello
I have my application works fine on my PC that I develop.
 
I want to install my application in server to be used anywhere in the world (more users will use to connect to the server).
 
1 - how I have to copy my database on the server??
2-how do I change the database path in the App.config file
 
3-how I create the executable file??
I'm stuck if anyone can help me please
 
thanks
Posted 10-Sep-12 23:53pm
Edited 11-Sep-12 1:34am
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
Comments
Member 9410354 at 11-Sep-12 7:48am
   
thank you @"Tushar_Patil4K"
1 - your link its not working if you have another link please
2 - I have not found a good link that explains step by step what should I do?
3 - I have some problems with the English language.
thank you for your comprhension
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

1) Depends on what sort of technology does the application use? (Is it a winforms app, WPF App, etc). If it is winforms its unlikely you can deploy the app straight to a server
 
2) App config should already have a connection string stored if you created a connection, you change that to the where ever your database is stored
 
3) Again that depends on what technology you use
  Permalink  
Comments
Member 9410354 at 11-Sep-12 7:47am
   
hello
thank you for your answer
I am using visual studio 2008 and sql server 2005 My application is a winform.
1 - is my App.config file:

 

connectionString = "Data Source = KAHINA-PC \ SQLEXPRESS; Initial Catalog = WORK; Integrated Security = True"
providerName = "System.Data.SqlClient" />
br mode="hold" />br mode="hold" /> how do I change this file (you have an example?)
2 - how do I do the deployment on the server?
3 - how do I copying my database from my pc to the server?

Thanks
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

You wouldnt be able to (and I could be wrong) be able to put the exe of the winforms app on a server, you would need to send the exe to clients and users.
 
You would need to deploy the database on an ISS server (you can read that up on Google), or create webservices that are deployed on a server which access your database. Both are quite time consuming and you would need to read up on it, its not easy as grabbing source code off the net.
 
So for the app config file the datasource tag needs to point to where you are going to host the database, so if you have a homeserver with sql on it that allows remote connections then the address of the that database would go there.
 
I would advise you do some reading on webservices as I think that is the best way to connect to a database remotely.
  Permalink  
Comments
Member 9410354 at 11-Sep-12 9:26am
   
in fact I have deploy my application on the server of my company and after, there are 50 employees, each connects to the server and can use the application.
the socity is not that the application must be installed on each computer 50 employees, it only installs on the server
 
- my application runs well on my pc just how to put on the server
So here is my problem then.
 
thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 339
1 Maciej Los 208
2 George Jonsson 144
3 Kornfeld Eliyahu Peter 139
4 Dave Kreskowiak 130


Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 11 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid