for debugging on site,the web.config should be edited as follows
2004-07-12 18:14
507 查看
<system.web>
<customErrors mode="Off"/>
</system.web>
this setting should be added into web.config so that the detailed error infos could be seen on the sites.
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
运行时错误
说明: 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息(出于安全原因)。但可以通过在本地服务器计算机上运行的浏览器查看。
详细信息: 若要使他人能够在远程计算机上查看此特定错误信息的详细信息,请在位于当前 Web 应用程序根目录下的“web.config”配置文件中创建一个 <customErrors> 标记。然后应将此 <customErrors> 标记的“mode”属性设置为“Off”。
<!-- Web.Config 配置文件 -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
注释: 通过修改应用程序的 <customErrors> 配置标记的“defaultRedirect”属性,使之指向自定义错误页的 URL,可以用自定义错误页替换所看到的当前错误页。
<!-- Web.Config 配置文件 -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
<customErrors mode="Off"/>
</system.web>
this setting should be added into web.config so that the detailed error infos could be seen on the sites.
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
运行时错误
说明: 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息(出于安全原因)。但可以通过在本地服务器计算机上运行的浏览器查看。
详细信息: 若要使他人能够在远程计算机上查看此特定错误信息的详细信息,请在位于当前 Web 应用程序根目录下的“web.config”配置文件中创建一个 <customErrors> 标记。然后应将此 <customErrors> 标记的“mode”属性设置为“Off”。
<!-- Web.Config 配置文件 -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
注释: 通过修改应用程序的 <customErrors> 配置标记的“defaultRedirect”属性,使之指向自定义错误页的 URL,可以用自定义错误页替换所看到的当前错误页。
<!-- Web.Config 配置文件 -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
相关文章推荐
- Unable to start debugging on the web server. The project is not configured to be debugged.
- Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in
- Unable to start debugging on the web server. The IIS worker process for the launched URL is not currently running
- - Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
- Unable to start debugging on the web server. The project is not configured to be debugged.
- Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information.
- on the web appear:"No data returned for this view.This might be because the applied filter excludes
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- Register an assembly as a safe control in the Web.config file
- VS 安装助手,弹出“The security key for this program currently stored on your system does not appear to be ”
- An explicit value for the identity column in table can only be specified when a column list is used and IDENTITY_INSERT is ON
- The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rw-rw-rw-
- [Graphics] UIColor created with component values far outside the expected range, Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
- arcgis server manager - An error has occured on the server. For details please check the Event (Application) log on the web.
- The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact
- Cross platform debugging proxy for web developers base on NodeJS
- No SDKs could be found for the IOS Device Platform, did you install the command line tools on your
- After upgrading the ebPart Assembly "Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed .."
- IIS on Windows XP: There are too many people accessing the Web site at this time.
- unable to start debugging on the web server. The web server could not find the requested resource