【发布时间】:2010-02-12 15:25:15
【问题描述】:
我有一个 ASP MVC (1.0) 应用程序。它可以通过 Visual Studio 在本地和我们运行 IIS6 的开发服务器上正常工作。但是当我尝试部署到测试服务器(在 Windows Server 2008 R2 上运行 IIS7)时,我只得到:
"Could not load file or assembly '<ApplicationName>' or one of its dependencies. Access is denied" (where <ApplicationName> is the name of my application).
接下来是一个“FileLoadException”、一个“ConfigurationErrorsException”和两个“HttpException”(都带有与上面相同的消息)
我通过发布部署到一个空目录,然后将其内容压缩并传输到测试服务器上的站点目录。如果我将目录内容复制到我的 IIS 安装中,它可以正常工作。我检查了 networkservices 有权访问站点目录和临时目录,这是我通过 google 找到的解决方案,但没有帮助。我完全被难住了。有什么想法吗?
亚当
【问题讨论】:
标签: asp.net asp.net-mvc iis-7 iis-6