This is my first, hopefully not last, web app - so, I expect I'll be posting a few more pleas for help before all is said and done.
I have an app created in VisualStudio 2008 that accesses an SQL database on another server within our network. The app worked fine when launched locally from VS2008. Now, I'm trying to get it to actually run on a network server. I've gotten numerous errors during trying to get this working, and seem to be going around in circles, so I'm posting the latest one with the expectation that there will be more to come.
The error I'm getting at the moment is "Server Error 401 - Unauthorized: Access is denied due to invalid credentials."
The app is on a Windows 2008 R2 server running IIS 7.5. It is compiled (I used the Publish option in VS2008). My domain account is a member of the Administrators group on the hosting PC, and the Administrators have full access to the application folder.
The app has its own AppPool, running under a custom domain account. This domain account has also been given full access to the app folder. The app has authentication enabled for ASP.NET Impersonation and Windows Authentication only.
UPDATE:
I couldn't help myself and continued to tinker. Now I'm getting a login prompt for the server on which the app is hosted, and, when I cancel it, I get "HTTP Error 401. The requested resource requires user authentication." What I had done was change the order of the providers for Window Authentication so that Negotiate comes before NTLM, which gave me the error "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'". I changed the order back to NTLM followed by Negotiate, and got the HTTP Error 401.