Iis

Morpheus

Well-known member
Joined
Jan 18, 2002
Messages
62
I have a Webservice where you can write and edit a SQL Server database. I connected a ASP.NET webapplication to it and you can view the site from the internet but you cant save changes to the database.

Is it something with permissions in IIS?
 
How do you manage connection to SQL Server ,
in File Web.Config please check have you provided username and password to databse.
it depends on sql connection , how your web service is accessing database.
 
I think I know what could be wrong, I had to change the port for default webpage in IIS otherwise no one could view the page from the internet. When I changed the port Visual Studio wouldnt open the webapplication

"Unable to open Web project WebApplication1. The file path C:\Inetpub\wwwrot\WebApplication1 does not correspond to the URL http://localhost/WebApplication1. The two need to map to the same server location. The server returned an invalid or unrecognized respons"

If I change the port back to 80 it works fine again. As it is now I cant even reache the database localy.
 
have you tried to accessing URL with this after chaning default port
http://localhost:940/webapplication
Where 940 is the port number which you have changed from 80 to 940
I hope it might help.
 
Back
Top