问题描述
我正在测试包含ASP.NET Web部件的ASP.NET 3.5应用程序的部署.在我的开发机器上,它可以正常工作.但是,当我在IIS 6上部署它时,出现以下错误:
无法打开用户默认数据库.登录失败.
用户'NT AUTHORITY \ NETWORK SERVICE'的登录失败.
文件激活失败.物理文件名"c:\ inetpub \ wwwroot \ TestWebParts \ App_Data \ aspnetdb_log.ldf"可能不正确.
我的ASP.NET应用程序由IIS托管.在NETWORK SERVICE帐户下运行的AppPool.我已经授予该帐户对AppData文件夹的读/写访问权限.当我第一次运行该应用程序时,可以正确创建mdf,但出现此错误.不知道我在想什么.部署计算机已正确安装了SQLExoress.
预先感谢和问候
Navin
Hi,
I'm testing deployment of of an ASP.NET 3.5 application containing ASP.NET web parts. On my development machine, it works just fine. But when I deploy it on IIS 6, I get this error:
Cannot open user default database. Login failed.
Login failed for user 'NT AUTHORITY\NETWORK SERVICE'.
File activation failure. The physical file name "c:\inetpub\wwwroot\TestWebParts\App_Data\aspnetdb_log.ldf" may be incorrect.
My ASP.NET application is hosted by an IIS AppPool running under NETWORK SERVICE account. I've given that account read/write access to AppData folder. When I first run the application, the mdf is created all right but I get this error. Not sure what I am missing. The deployment machine has SQLExoress installed all right.
Thanks in advance and regards
Navin
推荐答案
谢谢您的帖子!我建议您以 Home ›
位于此处: http://forums.asp.net/ . 跨度>
祝您度过愉快的一天!
这篇关于新手:部署ASP.NET Web部件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!