由网友(倾城倾国倾你一人)分享简介:我已经建立了自己的网站使用ASP.NET成员资格。这一切工作尝试使用它在我的开发机的时候很好,但是当我把它在Web服务器上,并尝试登录,我得到这个错误:无法更新数据库C:,因为数据库是只读的\ INETPUB \ wwwroot的\ APP_DATA \ ASPNETDB.MDF解决方案 感谢您的帮助。我刚刚找到了解决...![不能更新 数据库或对象为只读怎么解决 怎么解决](https://p.xsw88.cn/allimgs/daicuo/20230903/936.png)
我已经建立了自己的网站使用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:INETPUBWWWROOTAPP_DATAASPNETDB.MDF" because the database is read-only. "
![不能更新 数据库或对象为只读怎么解决 怎么解决](https://p.xsw88.cn/allimgs/daicuo/20230903/936.png)
解决方案
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.
相关推荐
最新文章