【问题标题】:error when configured application in IIS在 IIS 中配置应用程序时出错
【发布时间】:2012-02-25 20:21:31
【问题描述】:

这是我的 web.config 文件...

<?xml version="1.0" encoding="UTF-8"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration> 
    <system.web>
        <compilation debug="true" targetFramework="4.0" />
    <authentication mode="Forms">     
    </authentication>               
    </system.web>
    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
        <directoryBrowse enabled="true" />
    </system.webServer>
</configuration>

当我尝试托管我的应用程序时出现错误..

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

谢谢

【问题讨论】:

    标签: asp.net .net iis


    【解决方案1】:

    检查是否使用 asp.net 4.0 设置了应用程序池 确保 IIS 中的网站(或虚拟目录)是一个应用程序,而不仅仅是一个文件夹;右键单击将为您提供相关选项

    【讨论】:

      猜你喜欢
      • 2010-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-18
      • 1970-01-01
      • 2017-05-12
      • 1970-01-01
      • 2018-07-09
      相关资源
      最近更新 更多