tag configuration in web.config error , please help me !!! [modified]
-
I created a new ASP.Net website by Visual Studio 2005. Used language : C# Database: no use Then uploaded by menu "Public website" is get error: (I have delete symbol "<" in code for you view ...) ===================================================================== =====================================================================
Server 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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". 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 configuration tag to point to a custom error page URL. configuration> system.web> system.web> configuration> code> ===================================================================== ===================================================================== Please help me about this error. Thank you very much !!! -- modified at 22:18 Sunday 15th April, 2007 NIIT
-
I created a new ASP.Net website by Visual Studio 2005. Used language : C# Database: no use Then uploaded by menu "Public website" is get error: (I have delete symbol "<" in code for you view ...) ===================================================================== =====================================================================
Server 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 tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". 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 configuration tag to point to a custom error page URL. configuration> system.web> system.web> configuration> code> ===================================================================== ===================================================================== Please help me about this error. Thank you very much !!! -- modified at 22:18 Sunday 15th April, 2007 NIIT
Hi NguyenMinhCold, There is some exception in your code behind. And the information states that to be able to view these kind of errors on remote machines need some changes in the web.config file. You can do one of the two things - 1. Try to access / repeat the same page from where you are publishing it (web server machine) without changing the web.config. This will enable you to view what exactly the error is. 2. Add customErrors mode="Off" tag in your web.config and see the error from the client machine. After that you can correct the error and restore the web.config if you have changed it on the server machine.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder