Answered by:
Run time error upon publish to Azure

Question
-
User-1557173817 posted
Hello just published my application to Azure but I got a run time error showing;
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>
Please how can I go about this.
Friday, January 15, 2016 8:50 AM
Answers
-
User541108374 posted
Hi,
just do as the error says: change the setting of customErrors and upload it back to Azure. After that you can get a more detailed page with information of what's going on.
Grz, Kris.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, January 15, 2016 9:04 AM -
User-1716253493 posted
There is something wrong in your application when you open the page.
But you are not able to see detailed error to fix it.
To see detailed error, open the web in server browser or modify web.config like above sugestion. It will allow you to see detailed error from client.
See below to configure IIS
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, January 15, 2016 9:11 AM
All replies
-
User541108374 posted
Hi,
just do as the error says: change the setting of customErrors and upload it back to Azure. After that you can get a more detailed page with information of what's going on.
Grz, Kris.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, January 15, 2016 9:04 AM -
User-1716253493 posted
There is something wrong in your application when you open the page.
But you are not able to see detailed error to fix it.
To see detailed error, open the web in server browser or modify web.config like above sugestion. It will allow you to see detailed error from client.
See below to configure IIS
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, January 15, 2016 9:11 AM