Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Cannot open database "data.MDF" requested by the login. The login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.

I am using IIS7,
web.config in visual studio

<add name="MyDB" connectionstring="Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Desktop\Project\App_Data\MyDB.mdf;Integrated Security=True;Connect Timeout=30" providername="System.Data.SqlClient">

I have disabled forms authentication and asp.net impersonation
Posted

1 solution

This thread[^] could solve your problem.
 
Share this answer
 

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