1Server Error in '/' 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 --><configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
 Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File --><configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
 
本地运行正常 到服务器上报错 在网上看了很多大都是
1  设置 <customErrors mode="Off"/>
2  ASP.NET用户权限设置 
3  重启服务器
都设置过了 问题依旧 ??????????????2
session 怎么一会就过期了。默认时间是20分钟吧 但是过了几分钟就失效了。
修改了webconfig   <sessionState timeout="1000"  mode="InProc" ></sessionState>
还是过一会就失效。???????????????????????

解决方案 »

  1.   

    服务器上IIS里的会话时间可能设置比较短,你应该用的是虚拟空间吧..
      

  2.   

    我没有用IIS运行。直接VS浏览出来的就不需要设置IIS了吧
      

  3.   

    代码<?xml version="1.0"?><configuration>
    <appSettings>
        <add key="ConnectionString" value="server=.;database=4s;uid=sa;pwd=123111" />
        <add key="CrystalImageCleaner-AutoStart" value="true" />
         <add key="CrystalImageCleaner-Sleep" value="60000" />
         <add key="CrystalImageCleaner-Age" value="120000" />
     </appSettings>
    <connectionStrings/>
    <system.web>
     <customErrors mode="off" />
    <httpHandlers>
    <add verb="*" path="*.ashx" type="AjaxPro.AjaxHandlerFactory,AjaxPro"/>
    <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>
    <compilation debug="true">
    <assemblies>
    <add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    <add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    <add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    <add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    <add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
    <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></assemblies></compilation>
    <authentication mode="Windows"/>
           
     
    <globalization requestEncoding="gb2312" responseEncoding="gb2312"/>
    <pages validateRequest="false"/>
        <sessionState timeout="1000"  mode="InProc" ></sessionState>
    </system.web>
    </configuration>本地IIS运行一切正常
      

  4.   

    你的是framework什么版本?
    iis里设置版本号
      

  5.   

    customErrors mode="Off" 加上个就可以看到抛出的异 常
      

  6.   

    1.ASP.NET用户权限设置
    2.IIS设置..服务器的原因也很正常