views:

69

answers:

3

How do I setup and configure my asp.net site and SQL Server database when I upload it to hosting server? Thank you best regards.

A: 

you have to do changes in web.config, Like
1. DB connection string
2. SMPT Settings etc..

Muhammad Akhtar
A: 

I have my solution for this:

I have in my web.config 2 connectionstrings and in my code using directive and symbol debug i check for one or another

-#if DEBUG

is my test machine

-#else

my production server

-#endif

and put my connections strings in if, next when i compile in Release Mode it use my production server connection string

pho3nix
+1  A: 

I think it really comes down to what your hosting setup is. That will then define what configuration must take place within the ASP.NET application.

RSolberg