配置IIS中的ASP.NET应用程序 [英] Configuring an ASP.NET application in IIS
问题描述
我继承了一些ASPX(包括web.config文件),并正在以下错误。我创建了一个虚拟目录,但我不知道我将如何将其配置为应用程序?
配置错误
说明:配置文件的处理过程中发生错误
此请求提供服务所需。请检查特定错误详细信息
以下并适当地修改配置文件。分析器错误信息:这是使用注册为一节是错误的
allowDefinition的='MachineToApplication超越应用水平。此错误
可以通过虚拟目录引起不被配置为应用程序
在IIS。源错误:
49号线:ASP.NET识别传入的用户。
50号线: - >
线51:或其可认证模式=视窗/>
第52行:
53号线:其中,的customErrors模式=关/>
源文件:C:\\<&mypath中GT; \\ web.config行:51
走进虚拟目录的属性,单击虚拟目录选项卡,然后点击下的应用程序设置创建按钮,然后设置执行权限'到'只有脚本
另外,检查ASP.NET选项卡,以确保它被设置到正确的版本为你的应用程序。
最后,请确认您使用的应用程序池虚拟目录仅用于通过使用ASP.NET相同版本的其他网站和虚拟目录。
I've inherited some aspx (including the web.config file) and am getting the following error. I've created a virtual directory for it but I'm not sure how would I "configure it as an application"?
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
Go into the properties of the virtual directory, click the 'Virtual Directory' tab and click 'Create' button under 'Application Settings', then set 'Execute permissions' to 'Scripts only'
Also check the ASP.NET tab to make sure it is set to the correct version for your app.
Lastly, make sure the application pool being used for the virtual directory is only used by other sites and virtual directories using the same version of ASP.NET.
这篇关于配置IIS中的ASP.NET应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!