I am currently getting the error when trying to run the page asp net.
Any help would be much appreciated!
Many thanks in advance for your time.
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>
After you replace, usualy you will get the detailed error message. Another way go to server mechine and open your web from server browser.
The error message above indicate that there is something error in your application but browser can not show detailed error and need some changes to see detailed message.
Programming to simplify, dont look for hard way
Marked as answer by Angie xu - MSFT on Dec 06, 2012 11:30 PM
cms9651
Member
176 Points
580 Posts
Runtime Error web.config
Nov 30, 2012 08:20 AM|LINK
Hello guys,
I am currently getting the error when trying to run the page asp net.
Any help would be much appreciated!
Many thanks in advance for your time.
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>chandu123
Contributor
4646 Points
1172 Posts
Re: Runtime Error web.config
Nov 30, 2012 08:24 AM|LINK
Where are using this??in local system? or have you deployed it in IIS??
Chandrasekhar (MCTS) .NET framework 3.5, ASP.NET Applications
If my ANSWER helps you in solving your problem MARK IT AS ANSWER
Shailendra S...
Member
551 Points
145 Posts
Re: Runtime Error web.config
Nov 30, 2012 09:59 AM|LINK
is it deployed in hosting service then please enable option to show the error in details.
then it will show you the exact error.
www.techaray.com
cms9651
Member
176 Points
580 Posts
Re: Runtime Error web.config
Nov 30, 2012 10:50 AM|LINK
deployed it in IIS, thank you
oned_gk
All-Star
31820 Points
6510 Posts
Re: Runtime Error web.config
Dec 01, 2012 08:03 AM|LINK
Copy paste below to replace current config your web.config
<configuration> <system.web> <customErrors mode="Off"/> </system.web> </configuration>After you replace, usualy you will get the detailed error message. Another way go to server mechine and open your web from server browser.
The error message above indicate that there is something error in your application but browser can not show detailed error and need some changes to see detailed message.