How to track errors when starting the Azure web role?

I use the web role in azure. It works fine locally in application development, but doesn’t work when deployed to Azure (just no response to any request).

I assume this is a problem with web.config, but it happens so early that it happens before I can configure the diagnostic material in the global asax. As said, it works normally locally, but there is simply no answer from the azure system.

How can I find out what exactly is wrong in order to solve it, how to get the exception text, stack trace, IIS application system error log or something that could hint me at a real problem?

+5
source share
2 answers

The absolute first thing that runs as the Web is not your application, but the method OnStart()in WebRole.cs in your Azure project. This is the place to add code to monitor your website.

The standard method is to copy application trace logs and Windows event logs to the Azure table storage together (if necessary) using tools to use CPU, IIS statistics, and what you have.

A good introduction to this is here: http://blog.bareweb.eu/2011/01/beginning-azure-diagnostics/

as well as a detailed description of the features that you will need in your application: http://blog.bareweb.eu/2011/03/implementing-azure-diagnostics-with-sdk-v1-4/

which remains applicable for Azure SDK 1.5.

, Visual Studio , , Cerebrata Azure, . ( : ), , .


, Remote Desktop spelunking Windows .. Internet Explorer, .., .

, : , .

+4

- . - ad-hoc, blob .

0

All Articles