Search code examples
asp.net-mvc-3azure-web-roles

View Azure cloud service IIS logs


I have created a simple MVC3 site that displays data from a table in an Azure database. I have created a cloud service to run the site in and can publish it successfully. I have also run the site successfully in the Azure emulator.

My problem is that when I select the page that displays the data there is an error as I get the default error page. I think I have the db connections set correctly but I cannot see any logs. So my questions are:

  • Where are the IIS logs? I would like to see what the error is.
  • Are there any other logs/diagnostics that I can use to see what the problem is?

Thanks.


Solution

  • I suggest you use Windows Azure Diagnostics to collect your logs.

    You can read all(setup and usage) about it here: http://msdn.microsoft.com/en-us/library/windowsazure/gg433048.aspx