首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >将ASP.net项目复制到另一个IIS.

将ASP.net项目复制到另一个IIS.
EN

Stack Overflow用户
提问于 2010-08-26 17:39:52
回答 1查看 836关注 0票数 1

我有一个ASP.net项目,我已经将源文件复制并粘贴到另一台计算机上,但当我尝试在这台计算机的本地主机上运行它们时:

代码语言:javascript
运行
复制
    Error Summary
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information
Module  IIS Web Core
Notification    BeginRequest
Handler Not yet determined
Error Code  0x80070021
Config Error    This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File \\?\C:\inetpub\wwwroot\myproj\myproj\web.config
Requested URL   http://localhost:80/myproj/myproj/default.aspx
Physical Path   C:\inetpub\wwwroot\myproj\myproj\default.aspx
Logon Method    Not yet determined
Logon User  Not yet determined
Config Source
   96:      </modules>
   97:      <handlers>
   98:          <remove name="WebServiceHandlerFactory-Integrated"/>

如果有任何帮助的话,我将把它从IIS6转移到IIS7。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-08-26 17:49:40

看起来您尚未使用IIS管理工具将该文件夹创建为应用程序/虚拟目录。在iis.net上有step-by-step instructions on Technet和一个overview of Sites, Applications and Virtual Directories

消息的部分:

此配置节不能在此路径中使用。当节在父级被锁定时,就会发生这种情况。锁定要么是默认的(overrideModeDefault=“拒绝”),要么是由带有overrideMode="Deny“或遗留allowOverride="false”的位置标签显式设置的。

似乎并未将该文件夹设置为虚拟目录/应用程序,因为<handlers>部分应该是可更改的。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3573854

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档