nHi Guys,
n
nA quick post on how we solved the strange issue in Azure Emulator.
nWe had our ASP.NET MVC site up and running , but when we used to run it in the Azure Emulator – we used to get an error with code 500.
n
nAfter long research and reading various posts on it , nothing helpful was found.
n
nWhat was the reason behind this error?
n
nThere is a class file named WebRole.cs for any web role project in Azure. This class is inherited from another class known as RoleEntryPoint.
nSo the WebRole.cs usually contains override of a method known as OnStart().
nThere are few more methods you can override in this class like OnStop() and OnRun()
n
nIn our case the OnRun() method was having empty implementation and was missing base.Run() statement which was causing the problem.
n
nAfter adding simply one statement i.e. base.Run() in the OnRun() method everything started working fine.
n
nHope this helps someone.
n
nA quick post on how we solved the strange issue in Azure Emulator.
nWe had our ASP.NET MVC site up and running , but when we used to run it in the Azure Emulator – we used to get an error with code 500.
n
nAfter long research and reading various posts on it , nothing helpful was found.
n
nWhat was the reason behind this error?
n
nThere is a class file named WebRole.cs for any web role project in Azure. This class is inherited from another class known as RoleEntryPoint.
nSo the WebRole.cs usually contains override of a method known as OnStart().
nThere are few more methods you can override in this class like OnStop() and OnRun()
n
nIn our case the OnRun() method was having empty implementation and was missing base.Run() statement which was causing the problem.
n
nAfter adding simply one statement i.e. base.Run() in the OnRun() method everything started working fine.
n
nHope this helps someone.