SOLUTION FOR THE ENVIRONMENT:
Win 7, IIS 7.0, Visual Studio 2010, Database.mdf
Open the web configuration and check the conexion line:
Importantly, make sure that AttachDbFilename does not follow C: \ inetpub \ <> \ App_Data \
<add name="conexion" connectionString="Data Source=.\SQLEXPRESS; AttachDbFilename=|DataDirectory|Database.mdf; Integrated Security=True; User Instance=True" />
In IIS 7.0 Go to ApplicationPools, find the application pool created for the application.
- Click Advanced Options
- Go to Identity and open it. Choose Custom
- Account and setting up a PC or server administrator account
Then go to the website in IIS 7.0 and click on it ...
- Find and double-click the Identification icon
Click "Anonymous Authentication" and select "Edit", then "Application Pool Identifier"
Find the impersonation and edit of ASP.NET, select "Specify User" and enter the credentials.
Restart IIS: cmd> iisreset / noforce or click image reset
source share