I recently had some problems that, it seems to me, can help in debugging my ASP.NET MVC application in IIS instead of using ASP.NET Development as the default Server. However, when I try to do this, the application cannot access the database server (MS SQL Server 2008 Express) - it works fine on the development server.
The error I get is
Cannot open database 'myDbName' requested by the login. The login failed. Login failed for user 'NT INSTANCE/NETWORK SERVICE'.
I assume that it worked before, because the development server accessed the database through my user account, and not through a network service such as IIS .
I tried to add the NETWORK SERVICE user to the database, but it turned out that I do not have user rights for this - it does not matter that my Windows account with which I log in to the server is admin, or that I run the program in the administrator context. I just can't add another user to the database.
How to solve this problem?
source share