+1-888-365-2779
Try Now
More in this section

Forums / Deployment / Initialization Failed: Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment threw an exception.

Initialization Failed: Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment threw an exception.

5 posts, 0 answered
  1. Paul
    Paul avatar
    4 posts
    Registered:
    21 Sep 2015
    20 Dec 2015
    Link to this post

    I am using Visual Studio 2015, with Azure SDK 2.7. Using the instructions here (http://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.

  2. Paul
    Paul avatar
    4 posts
    Registered:
    21 Sep 2015
    23 Dec 2015 in reply to Paul
    Link to this post
    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?
  3. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    30 Sep 2016
    28 Dec 2015
    Link to this post
    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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  4. Kris
    Kris avatar
    2 posts
    Registered:
    13 Jul 2015
    17 May in reply to Velizar Bishurov
    Link to this post

    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.

  5. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    Registered:
    30 Sep 2016
    19 May
    Link to this post
    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
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
5 posts, 0 answered