Failed to update database \APP_DATA\ASPNETDB.MDF because the database is read-only


Failed to update database "C:\INETPUB\WWWROOT\COMPUZIT\APP_DATA\ASPNETDB.MDF" because the database is read-only.

Today when I configured IIS on Windows 7 machine, my all websites displayed titled error, when I googled the fix then I got following that fixed my error.

1.) Make sure your virtual directory is running ASP.NET.
2.) Give the user ASPNET full control over the App_Data directory found within your website.
3.) Restart IIS to refresh its permissions.

I hope this post will help you to fix your machine error.

Comments

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System

Lambda two tables and three tables inner join code samples