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

Posted on 2006-03-28
Last Modified: 2011-09-20
Hi there,

I am getting a real problem with ASP.NET 2.0, all i am trying to do is run a recovert password (using the login controls) and i got the following error.

Does anybody know how to fix this? I have tried the SSEUTIL answer here and it didn't work.

I also ensured that Network Services user has READ/WRITE/EXECUTE premissions on the directory below and that each file isn't read only (properties on the file in win explorer) and also that it inherits ACL from the directory which it seems to do..

Bit of strange one this, it isn't created (and i am not using) a beta version of VS 2005 Pro... but a full retail version.

The PC is the local PC with IIS 5.1 and VS installed... it is the one i am using for developing.. I don't need to copy my files to the IIS directory below as that is where i have created it and open it in VS 2005 from there..

I did read that if you use IIS 5.1 then the user should be ASPNET ... but i don't seem to have that user but a Network Services user...

Any help or guidance would be really appreciated... i have come to a stop stage and can't get any further..



Server Error in '/igdotcom' Application.
Failed to update database "C:\INETPUB\WWWROOT\IGDOTCOM\APP_DATA\ASPNETDB.MDF" because the database is read-only.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Failed to update database "C:\INETPUB\WWWROOT\IGDOTCOM\APP_DATA\ASPNETDB.MDF" because the database is read-only.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Question by:ianinspain
    LVL 26

    Accepted Solution


    Author Comment

    thanks! I got it i think.... althought it wasn't sseutil that fixed it... it was the post that helped..

    You see i never had aspnet user access to the folder of app_data.... and when i searched for it ... I couldn't find it as although my IIS is 5.1 and local - i am also connected to a domain and i was searching the domain users rather than LOCAL and it only showed me NETWORKSERVICES..

    Thanks- assigning points

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on could not pull conte…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now