solution:Failed to update database "XXX.MDF" because the database is read-only.
2009-09-25 20:00
776 查看
As usual I did Build - Publish Web Site and then copied and pasted the
published directory to my web server. When browsing any of the web
pages that use the SQL Server 2005 database I get this error message:
Failed to update database "XXX.MDF" because the database is read-only.
Solution:
This worked for me:
1) Make sure App_Data directory or any contained files does not
have file system attribute Read-only set. (I had some files marked as
Read-only)
2) Give user ASPNET and NETWORK SERVICE Modify control over the App_Data directory. (I had to add both these)
3) Run IISRESET to restart IIS to refresh its permissions.
and step 2 works here:
after selecting "properties on the "App_Data" directory,
1. Select the security tab
2. CLick on Add... under "Group or User names:" table
3. On the next window, select Advanced, another window appears and
on this, select or rather click on "find now" and a list of Groups and
Users should appear on the bottom table.
4. Click on ASPNET followed by OK, and the same on the next 2 windows.
published directory to my web server. When browsing any of the web
pages that use the SQL Server 2005 database I get this error message:
Failed to update database "XXX.MDF" because the database is read-only.
Solution:
This worked for me:
1) Make sure App_Data directory or any contained files does not
have file system attribute Read-only set. (I had some files marked as
Read-only)
2) Give user ASPNET and NETWORK SERVICE Modify control over the App_Data directory. (I had to add both these)
3) Run IISRESET to restart IIS to refresh its permissions.
and step 2 works here:
after selecting "properties on the "App_Data" directory,
1. Select the security tab
2. CLick on Add... under "Group or User names:" table
3. On the next window, select Advanced, another window appears and
on this, select or rather click on "find now" and a list of Groups and
Users should appear on the bottom table.
4. Click on ASPNET followed by OK, and the same on the next 2 windows.
相关文章推荐
- "Failed to update database "c:\inetpub\wwwroot\WebSite1\App_Data\ASPNETDB.MDF" because the database is read-only."的解决办法
- "Failed to update database "c:\inetpub\wwwroot\WebSite1\App_Data\ASPNETDB.MDF" because the database is read-only."的解决办法
- How to solve “add/remove operation is impossible, because the code element 'Cxxx' is read only” With
- "add/removeoperation is impossible, because the code element 'Cxxx' is read only" 的解决办法
- 解决:Failed to update database: "APP_DATA\ASPNETDB.MDF" is read-only .
- Database 'xxx' cannot be upgraded because it is read-only or has read-only file Make the database or files writeable, and rerun recovery.
- 【转】How to solve “add/remove operation is impossible, because the code element 'Cxxx' is read only”
- How to solve “add/remove operation is impossible, because the code element 'Cxxx' is read only”
- add/remove operation is impossible, because the code element 'Cxxx' is read only
- add/remove operation is impossible, because the code element 'Cxxx' is read only
- ADODB使用excel的"Cannot modify the design of table 'xxxx'. It is in a read-only database"的问题
- Sharepoint Service Error: A deployment or retraction is already under way for the solution "xxx.wsp" , and only one deployment or retraction at a time
- add/remove operation is impossible, because the code element 'Cxxx' is read only
- add/remove operation is impossible, because the code element 'Cxxx' is read only
- The Solution to "xxx is not in the sudoers file"
- Application+XXX+is+waiting+for+the+debugger+to+Attach"+.
- This application failed to start because it could not find or load the Qt platform plugin "windows"
- PowerDesigner打开设计文件后提示failed to read the fileXXX的解决方法
- 解决vmware fusion + centos 7安装vmtools时提示The path "" is not a valid path to the xxx kernel headers.
- The working copy"XXX" failed to commit files