Click here to Skip to main content
14,423,874 members
Rate this:
Please Sign up or sign in to vote.
See more:
I publish my asp.net website to localhost successfully, I can open the pages normally, but I have no access to the database I catch the following exception,

System.Data.SqlClient.SqlException (0x80131904): Cannot open database "ltest" requested by the login. The login failed. Login failed for user 'NT AUTHORITY\SYSTEM'.
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

I have answered a similar question before here:
IIS Error on localhost for ASP.NET Web App[^]
   
Comments
Member 10672813 21-May-14 19:03pm
   
I add user and password to the connection, I get this
The SELECT permission was denied on the object 'user', database 'testl', schema 'dbo'.

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100