Click here to Skip to main content
15,887,962 members
Please Sign up or sign in to vote.
1.00/5 (1 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

I have answered a similar question before here:
IIS Error on localhost for ASP.NET Web App[^]
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900