Server Error in '/web' Application

来源:百度知道 编辑:UC知道 时间:2024/06/07 00:39:37
rry 17:10:30
Server Error in '/web' Application.
--------------------------------------------------------------------------------

Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

Server Error in '/web' Application解释为后台服务器错误

解决方法:
  1、检查iis—web服务扩展--ASP.NET v2.0.50727和Active Server Pages有没有设置允许
(如果没有服务扩展重新注册IIS服务扩展,在“开始”-“运行”里输入如入命令,回车C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i -enable)。
2、控制面板--管理工具--服务--asp.netstate service 设置为自动,并启动执行后如果不行最好重新建立一个虚拟目录或网站浏览。

将web.config打开,会看到有一行是<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" timeout="20"/>,如果没有,请在<system.web>的下一行添加,再将其中的InProc改为StateServer,保存即可
开启ASP.NET State Service服务,把它设成自动。

  1. 将web.config打开,会看到<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" timeout="20"/>,

  2. 如果没有,请在<system.web>的下一行添加,

  3. 再将其中的InProc改为StateServer,保存即可 ,

  4. 开启ASP.NET State Service服务,将其设成自动。

  5. 设为自动后,就可以用了。