无法更新数据库,因为它是只读 [英] Failed to update database because it is read-only

查看:188
本文介绍了无法更新数据库,因为它是只读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了自己的网站使用ASP.NET成员资格。这一切工作尝试使用它在我的开发机的时候很好,但是当我把它在Web服务器上,并尝试登录,我得到这个错误:

 无法更新数据库C:,因为数据库是只读的\ INETPUB \ wwwroot的\ APP_DATA \ ASPNETDB.MDF
 

解决方案

感谢您的帮助。我刚刚找到了解决办法。在App_Data ACL,我有两个项目:网络服务和IIS_IUSRS。网络服务帐户有充分的权限,但IIS_IUSRS组有只读访问。所以,我给IIS_IUSRS完全权限,以及和它的工作!

再次感谢。

I have set up my website to use ASP.NET Membership. it all works fine when trying to use it on my development machine but when I put it on the web server and try to log in, I get this error :

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

解决方案

thanks for the help. I just found a solution. in the App_Data ACL, I had two entries : Network Service and IIS_IUSRS. the Network Service account had full permissions but IIS_IUSRS group had only read access. so, I gave IIS_IUSRS full permissions as well and it worked !

thanks again.

这篇关于无法更新数据库,因为它是只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆