异常错误显示物理路径

异常错误显示物理路径

本文介绍了异常错误显示物理路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

异常错误显示asp.net实际驻留在开发机器中的物理路径。即使在生产服务器中发布后,异常错误也显示发生了开发的本地文件夹。



所以实际上想要避免错误消息中的本地文件夹驱动器路径。



Asp.net应用程序使用asmx webservices与数据库进行通信。

exception error shows physical path where asp.net actually resides in development machine. Even after publishing in production server the exception error shows local folder where development occurred.

so actually wants avoid that local folder drive path in error message.

Asp.net application uses asmx webservices to communicate with Database.

推荐答案

<customErrors mode="On" />



在我的下一篇文章中 [] ASP.NET MVC应用程序有一些提示和代码框架,但对任何ASP.NET应用程序也都有用。


In my next article MVC Basic Site: Step 2 - Exceptions Management[^] there are some hints and code skeleton for an ASP.NET MVC application but could be useful also for any ASP.NET application.



这篇关于异常错误显示物理路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 10:30