"/xxxx"应用程序中的服务器错误. [英] Server Error in '/xxxx' Application.

查看:124
本文介绍了"/xxxx"应用程序中的服务器错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

web.config看起来像
----------------------------

web.config looks like
----------------------------

configuration>
connectionstrings>

/connectionstrings>
appsettings>

/appsettings>
 
system.web>

sessionstate mode="InProc" stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="2000">

compilation debug="true" targetframework="4.0">
<assemblies>

authentication mode="Windows" />

pages controlrenderingcompatibilityversion="3.5" clientidmode="AutoID" />
/system.web>
/configuration> 


您好,我在运行asp.net应用程序时遇到以下异常.请任何人都可以解决我的问题.
在此先感谢.


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, <br mode=" hold=" /><br mode=" allowdefinition="MachineToApplication" />
Line 106:section name="protocols" type="System.Web.Configuration.ProtocolsSection, System.Web, Version=4.0.0.0, Culture=neutral, <br mode=" hold=" /><br mode=" allowdefinition="MachineToWebRoot" />
Line 107:section name="roleManager" type="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, <br mode=" hold=" /><br mode=" allowdefinition="MachineToApplication" />
Line 108:section name="securityPolicy" type="System.Web.Configuration.SecurityPolicySection, System.Web, Version=4.0.0.0, Culture=neutral, <br mode=" hold=" /><br mode=" allowdefinition="MachineToApplication" />
Line 109:section name="sessionPageState" type="System.Web.Configuration.SessionPageStateSection, System.Web, Version=4.0.0.0, Culture=neutral, <br mode=" hold=" /><br mode=" /> 

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 
my web.config looks like
----------------------------
configuration>
  connectionstrings>
    
  /connectionstrings>
  appsettings>   
    
  /appsettings>

  system.web>
   
    sessionstate mode="InProc" stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="2000">
    compilation debug="true" targetframework="4.0">
      assemblies>          
    authentication mode="Windows" />
   
    pages controlrenderingcompatibilityversion="3.5" clientidmode="AutoID" />
  /system.web>
/configuration></assemblies>

推荐答案

该错误与错误消息中所说的一样.您需要检查声明信息的配置文件以及在错别字上使用它的代码.最常见的是大写/小写名称不匹配以及标识符不正确.

祝你好运!
The error is just as the error message says. You need check the configuration file where you declared the info and the code using it on typos. Most common is a mismatch in upper/lowercase names and incorrect identifiers.

Good luck!




根据以下错误消息:

"system.web/roleManager:线程正在中止."

请检查< system.web> web.config文件中的标签.

谢谢
Hi,

According to below error message :

"system.web/roleManager: Thread was being aborted."

please check <system.web> tag in web.config file.

Thanks


这仅显示错误消息.请提供web.config文件bcoz,否则无法解决或分析问题.

您正在使用会话状态进行处理,并传递Stateconnectionstring字符串和sqlconnectionstring.这是错误的.进程内会话状态中不需要它
This is showing only Error Message. Please provide the web.config file bcoz without that it is impossible to solve or analyze the problem.

You are using the Session State to Inprocess and passing the Stateconnectionstring string and sqlconnectionstring. It is wrong. It is not required in inprocess session State


这篇关于"/xxxx"应用程序中的服务器错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆