【问题标题】:Error occurred during the processing of a configuration file required to service this request处理服务此请求所需的配置文件期间发生错误
【发布时间】:2014-06-05 18:34:36
【问题描述】:

我已将客户的网络应用程序复制到我的C:\inetpub\wwwroot

我还运行 Aspnet_regiis.exe -i 来解决我之前遇到的错误

现在我有这个错误:

配置错误

描述:处理此请求所需的配置文件时出错。请查看下面的具体错误详情并适当修改您的配置文件。

解析器错误消息:在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的部分是错误的。此错误可能是由于虚拟目录未在 IIS 中配置为应用程序所致。

来源错误:

Line 31:     
Line 32:     <compilation debug="true" targetFramework="4.0" />
Line 33:     <authentication mode="Forms">
Line 34:       <forms loginUrl="~/Default.aspx" timeout="2880" />
Line 35:     </authentication>

源文件:C:\inetpub\wwwroot\site\web.config 行:33

版本信息:Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.18408

我已尝试运行该应用程序:http://localhost/site/Default.aspx。如何修复错误?

【问题讨论】:

    标签: asp.net web-config iis-7.5


    【解决方案1】:

    进入你的 IIS 管理控制台,在 Default Web Site(位于 Sites 节点下)下找到名为 site 的目录,右键单击站点并选择 Convert to Application。

    【讨论】:

      猜你喜欢
      • 2022-01-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-20
      • 2011-12-14
      • 1970-01-01
      相关资源
      最近更新 更多