I am currently developing a web application using asp.net C #. I have a server on which I am going to publish my site and its database today. This is a server running Windows Server 2008 R2.
But I have one problem:
My website does not seem to be accessing the database. If I started the site from another computer on my local network, I can access the server database, BUT I can not when I launch the website from the same server on which the database is located. This is really weird. I hope someone can help.
I am just getting an error that cannot access the database.
The strangest thing is that I use the same connection string on both computers, but it still does not work. Are there any settings in Windows Server 2008?
Here is my connection string:
<add name="ConnectionString"
connectionString="Data Source=AXELS;Initial Catalog=Sailor;Persist Security Info=True;User ID=sa;Password=saab123"
providerName="System.Data.SqlClient" />
parek source
share