【问题标题】:Configuring an ASP.NET application in IIS在 IIS 中配置 ASP.NET 应用程序
【发布时间】:2010-10-02 23:28:21
【问题描述】:

我继承了一些 aspx(包括 web.config 文件)并收到以下错误。我已经为其创建了一个虚拟目录,但我不确定如何“将其配置为应用程序”?

Configuration Error 
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details 
below and modify your configuration file appropriately. 

Parser Error Message: It is an error to use a section registered as 
allowDefinition='MachineToApplication' beyond application level.  This error 
can be caused by a virtual directory not being configured as an application 
in IIS.

Source Error: 


Line 49:             ASP.NET to identify an incoming user. 
Line 50:         -->
Line 51:        <authentication mode="Windows"/>
Line 52: 
Line 53:     <customErrors mode="Off"/>


Source File: C:\<MYPATH>\web.config    Line: 51 

【问题讨论】:

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


    【解决方案1】:

    进入虚拟目录的属性,点击“虚拟目录”选项卡,点击“应用程序设置”下的“创建”按钮,然后将“执行权限”设置为“仅限脚本”

    同时检查 ASP.NET 选项卡,确保它设置为适合您的应用的正确版本。

    最后,确保用于虚拟目录的应用程序池仅由使用相同版本 ASP.NET 的其他站点和虚拟目录使用。

    【讨论】:

    • 我自己说得再好不过了。尤其是 AppPool 的事情。 .NET 1.1 应用程序不喜欢与其他团队合作。
    【解决方案2】:

    在 IIS6 MMC 中,右键单击应用程序部署到的文件夹,单击属性,然后单击创建按钮。

    这将创建一个 IIS 应用程序。

    哦,请确保从 ASP.NET 选项卡中选择正确的 ASP.NET 版本,并确保它驻留在所选 ASP.NET 版本的正确应用程序池中。

    【讨论】:

      【解决方案3】:

      调出 vdir 的属性。验证它是应用程序,在虚拟目录选项卡上查看应用程序设置,如果它不是应用程序,请单击创建。

      如果文件夹是应用程序,则 vDir 图标也不同,应用程序是打开的小框,非应用程序 vdir 显示带有小地球的文件夹图标。

      【讨论】:

        【解决方案4】:

        右键单击您的虚拟目录-属性-选项卡“虚拟目录”单击中间的“创建”按钮并为您的应用程序命名

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2017-01-24
          • 2011-09-27
          • 2020-09-20
          • 1970-01-01
          • 1970-01-01
          • 2012-12-10
          • 1970-01-01
          • 2011-05-07
          相关资源
          最近更新 更多