Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
Hi, I am a Beginner.
I Just Uploaded My ASP.NET MVC Site to a Host. But is does not works.
My Exact Question is in "server" property of bellow connection string:

connectionString="server=' ';database=' ';User Id= ' ';password=' ';"

should i put servers address or should i put (Local)?
if i should put server address, should i use servers IP or use my site URL? host owner gave me a port number to database. should i include the port number too? like x.x.x.x:2010

but database is in same server that my websites code are, then why should we use server's address instead of using (local) like we do in our PC.

thank you very much
Posted

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900