« Previous Next »

Thread: Database is read-only

Last post 10-14-2008 8:42 AM by cesius. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 10-14-2008, 5:12 AM

    • cesius
    • Not Ranked
    • Joined on 10-14-2008, 5:04 AM
    • Posts 3

    Database is read-only

     Hello,

     I'm using Membership to create users with Asp.Net. When I test it with VS it works, but when I try to use it with IIS 7 I' ve got this error:

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

    What can I do?

     I'm working with Windows Vista Home Premium x64 and Visual Studio 2008 with Sql Server 2005.

    Thanks.

  • 10-14-2008, 7:00 AM In reply to

    Re: Database is read-only

    Check the folder the database is in and make sure it's not set to Read Only and that the Network Service account has at least Modify permissions.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 10-14-2008, 7:09 AM In reply to

    • cesius
    • Not Ranked
    • Joined on 10-14-2008, 5:04 AM
    • Posts 3

    Re: Database is read-only

    It was set to read-only  and I changed it, but when I see it , it's read-only again.

    How can I  see the Network Service Account permissions? It's my first application in Asp.Net and  I'm a little bit lost.

     

    Thanks.

  • 10-14-2008, 7:24 AM In reply to

    Re: Database is read-only

    In Windows Explorer, right click the folder and choose Properties.  Security tab, add Network Service and set it to Modify.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 10-14-2008, 8:42 AM In reply to

    • cesius
    • Not Ranked
    • Joined on 10-14-2008, 5:04 AM
    • Posts 3

    Re: Database is read-only

    I do everything you say but I don't have a user named "Network Service".

    is it "NETWO"?.

     

    Thanks

Page 1 of 1 (5 items)
Microsoft Communities