IIS在lan服务器中运行应用程序时显示错误。 [英] IIS show the error when run th application in lan server.
问题描述
Hii,我正在开发一个在Asp.net中开发的项目,它应该在lan服务器上运行。我已正确配置IIS并将应用程序存储在wwwroot文件夹中,但是当我尝试通过浏览器运行它时,它会向我显示此错误。
配置错误
描述:处理为此请求提供服务所需的配置文件时发生错误。请查看下面的具体错误详细信息,并相应地修改配置文件。
解析器错误消息:使用注册为allowDefinition ='MachineToApplication'的部分是错误的应用水平。此错误可能是由于虚拟目录未在IIS中配置为应用程序造成的。
来源错误:
第8行:<配置>
第9行:< system.web>
第10行:< roleManager enabled = QUOT;真" cacheRolesInCookie =" true">< / roleManager>
第11行:<身份验证模式="表格">< / authentication>
第12行:< compilation debug =" true" targetFramework =" 4.0">
源文件:C:\inetpub \ www.root \ chaudwar \web .config行:10
Hii, i'mworking on a project that developed in Asp.net and it should run in a lan server. I had configure the IIS properly and store the application inside the wwwroot folder, but whem I try o run it through my browser it shows me this Error.
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 8: <configuration>
Line 9: <system.web>
Line 10: <roleManager enabled="true" cacheRolesInCookie="true"></roleManager>
Line 11: <authentication mode="Forms"></authentication>
Line 12: <compilation debug="true" targetFramework="4.0">
Source File: C:\inetpub\wwwroot\chaudwar\web.config Line: 10
推荐答案
您好,
在IIS中,尝试将您的虚拟目录转换为应用程序(右键单击);)
Hello,
In IIS, try to convert your virtual directory to an application (right click) ;)
如果这是32位,请确保ASPNET帐户具有访问web.config的权限。如果是64位,请向网络服务帐户授予访问权限。
If this is a 32bit, make sure ASPNET account has the permission to access web.config. If it's 64bit, grant Network Service account with the access.
这篇关于IIS在lan服务器中运行应用程序时显示错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!