Last post Sep 11, 2015 03:56 AM by Jamobor yao - MSFT
Sep 08, 2015 05:21 PM|uid633445|LINK
I am new to Azure MVC development and am quite not sure how to properly debug runtime errors. The problem I am running into is that I have just finished going through the Microsoft Azure tutorial
https://azure.microsoft.com/en-us/documentation/articles/cloud-services-dotnet-get-started/ and ran the application with the debugger fine the first time. During the processing of adding a new record to my virtual SQL database that application crashed.
I then ran the application again and I am getting a RoleEnvironment with a null value. Of course the runtime error is: An exception of type 'System.Runtime.InteropServices.SEHException'.
I guess if anyone knows what the problem is here that would be great. Secondly, if anyone has a good link on how to debug Azure MVC applications that would help me a lot.
Sep 11, 2015 03:56 AM|Jamobor yao - MSFT|LINK
This error message usually show us that you're not running in the dev fabric or Azure fabric, please double check your startup project is the cloud project, you should make sure you're running in the dev fabric or Azure fabric by checking
RoleEnvironment.IsAvailable. If that's true, you're safe to call anything in RoleEnvironment. If it's false, you're not running within the fabric.