After i have deployed my ASP.NET WebRole to Azure and looked into the Azure Intellitrace i noticed a lot of RoleEnvironment Exceptions and they are occuring at RoleEnvironment.IsEmulated.
I thought there is something missing in ServiceConfiguration because the
next-to-last call in stacktrace is always RoleEnvironment.GetConfigurationSettingValue.
Now i searched after this problem but i found nothing but this link:
But my service configuration is correct. I think the setting ?IsSimulationEnvironment? should be created by Azure, but not in my case because of the exceptions.
And i cannot put the "?IsSimulationEnvironment?" Setting manually in my configuration, because that is not compliant to the xml namespace of the serviceconfiguration.
Has anybody got an idea how to solve this annoying problem?
All the similar issues I could find points to problem in ServiceConfiguration or ServiceDefinition files.
How is customer noticing these exceptions? Through trace.writeline or is he attaching a debugger?
Are these exceptions preventing the application to run?
If only in this particular application customer is seeing this behavior he could open a support ticket so we can investigate it in more details. This is not a known issue.
Do you think he can build a simple application that reproduces this error? If so we could try it on our environment.
Cx also noticed in the RoleModel.xml the following line:
HeManNew
Member
12 Points
14 Posts
Got RoleEnvironmentException in Azure when accessing RoleEnvironment.IsEmulated
Sep 28, 2012 02:18 PM|LINK
After i have deployed my ASP.NET WebRole to Azure and looked into the Azure Intellitrace i noticed a lot of RoleEnvironment Exceptions and they are occuring at RoleEnvironment.IsEmulated.
I thought there is something missing in ServiceConfiguration because the next-to-last call in stacktrace is always RoleEnvironment.GetConfigurationSettingValue.
Now i searched after this problem but i found nothing but this link:
http://bretstateham.com/azure-serviceconfiguration-cscfg-changes%E2%80%A6/
But my service configuration is correct. I think the setting ?IsSimulationEnvironment? should be created by Azure, but not in my case because of the exceptions.
And i cannot put the "?IsSimulationEnvironment?" Setting manually in my configuration, because that is not compliant to the xml namespace of the serviceconfiguration.
Has anybody got an idea how to solve this annoying problem?
RameshRajend...
Star
7983 Points
2099 Posts
Re: Got RoleEnvironmentException in Azure when accessing RoleEnvironment.IsEmulated
Nov 30, 2012 07:00 AM|LINK
Hi
This is the reply from a senior engineer:
All the similar issues I could find points to problem in ServiceConfiguration or ServiceDefinition files.
How is customer noticing these exceptions? Through trace.writeline or is he attaching a debugger?
Are these exceptions preventing the application to run?
If only in this particular application customer is seeing this behavior he could open a support ticket so we can investigate it in more details. This is not a known issue.
Do you think he can build a simple application that reproduces this error? If so we could try it on our environment.
Cx also noticed in the RoleModel.xml the following line:
<NetFxEntryPoint assemblyName="D_UI_NiP_WebRole.dll" targetFrameworkVersion="v3.5" />
Is that normal that the targetFrameworkVersion is set to v3.5?
> This is normal and expected.
About the other problem that customer mentions that is having for a few weeks, he should open a support ticket so we can help him out faster.
Hope it helpful.