"/xxxx"应用程序中的服务器错误 [英] Server Error in '/xxxx' Application
问题描述
您好,我在运行asp.net应用程序时遇到以下异常.请任何人都可以解决我的问题.
在此先感谢.
``/xxxx''应用程序中的服务器错误.
-------------------------------------------------- ------------------------------
配置错误
说明:在处理服务于此请求所需的配置文件期间发生错误.请查看下面的特定错误详细信息,并适当地修改您的配置文件.
解析器错误消息:为system.web/roleManager创建配置节处理程序时发生错误:线程正在中止.
源错误:
hello, i am getting the following exception when i run the asp.net application.please can any one solve my issue.
thanks in advance.
Server Error in ''/xxxx'' 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: An error occurred creating the configuration section handler for system.web/roleManager: Thread was being aborted.
Source Error:
Line 105: <section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
Line 106: <section name="protocols" type="System.Web.Configuration.ProtocolsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToWebRoot"/>
Line 107: <section name="roleManager" type="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
Line 108: <section name="securityPolicy" type="System.Web.Configuration.SecurityPolicySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
Line 109: <section name="sessionPageState" type="System.Web.Configuration.SessionPageStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Source File: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config Line: 107
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
推荐答案
这是一个权限问题.
在web.config中,如下所示更改,
This is a permission issue.
In web.config change like below,
<system.web>
<identity impersonate="true" userName="DOMAIN\username" password="mypass"/>
</system.web>
或
提供一些组角色,找出组(使用命令提示符whoami/groups).
希望这能解决问题.:)
Or
Provide some group roles, find out the group (using command prompt whoami /groups).
Hope this resolve the issue.:)
这篇关于"/xxxx"应用程序中的服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!