Initialization Failed: Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment threw an exception.
I am using Visual Studio 2015, with Azure SDK 2.7. Using the instructions here (docs.sitefinity.com/publish-your-project-to-azure-web-apps), I keep receiving the following error after the deployment:
"The type initializer for 'Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment' threw an exception. "
Any help is appreciated.
Anyone? I'm kinda' dead in the water here with this deployment. Can I get some help, or do I have to tell the client that we have to take another approach for a CMS?
Hi,
Currently Sitefinity does not support Azure SDK 2.7.
As stated in our documentation article you must use Azure SDK 2.6: http://docs.sitefinity.com/reference-windows-azure-sdk-supported-versions
Regards,
Velizar Bishurov
Telerik
I was able to add a redirect to the web.config and it worked with SDK 2.7
<dependentAssembly>
<assemblyIdentity name="Microsoft.WindowsAzure.ServiceRuntime" publicKeyToken="31bf3856ad364e35"/>
<bindingRedirect oldVersion="0.0.0.0-2.6.0.0" newVersion="2.7.0.0"/>
</dependentAssembly>
Hope this helps someone else.
Hi,
Please note that while this may appear to be working it is not officially tested and therefor is not supported at the moment. You should test the functionality of the site thoroughly with this in place.
Regards,
Velizar Bishurov
Telerik