Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get error details on Azure Web site

I'm new to Azure. Does anybody know how get detailed error message on website deployed to Azure web?

I added SimpleMembership to website and now Registration and Login (Post) are showing

Sorry, an error occurred while processing your request.

I'm connecting to DB on my home computer (no problem with connection).

LogFiles folder on azure ftp server has some files but I don't see how to use this information. I wish I can get YellowScreen on azure...

like image 874
Cherven Avatar asked Nov 01 '12 20:11

Cherven


People also ask

How do I check Azure webapp logs?

That's pretty much it. Now you can simply visit your application using the URL you can see on your Azure dashboard. On the portal, click on “Log Stream” immediately below “App Services log” and you'll see the log messages in real time.

What is diagnostic logs in Azure?

Diagnostic logs provide insights on the operations that were performed within a resource. With Microsoft Azure's diagnostic logs, you can export basic usage metrics from content delivery network (CDN) endpoints to a variety of sources.


1 Answers

You have two options:

First, you can turn off custom errors in your web config. This is the quick-and-dirty approach but it will at least get you the information you are looking for. Just be sure to turn custom errors back on when you are done. NOTE: This method will display your stacktrace to the entire world.

<configuration>   <system.web>     <customErrors mode="Off" />   </system.web> </configuration> 

Second, you can remote desktop into your deployed machine, go to IIS Manager, and Browse to your site. Once you are there, reproduce the error and you will get the yellow screen of death you are looking for. For this to work, you will have to Enable Detailed Errors

like image 81
Robert Greiner Avatar answered Sep 22 '22 15:09

Robert Greiner