Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am having a problem accessing Azure Managed Cache from my Office365 SharePoint autohosted app. I am getting following error:

Microsoft.WindowsAzure.ServiceRuntime Error: 102 : Role environment . FAILED TO INITIALIZE. hr: -2147024894

I followed below mentioned steps:

  1. Created new Azure Cache service - Basic, 128MB

  2. Created new SharePoint Autohosted app.

  3. Installed Nuget package - Windows Azure Cache - 2.3.1.0 on SharePoint app web project

  4. Modified Web.config-

    < autoDiscover isEnabled="true" identifier="[MyCacheServiceUrl]" />
    < securityProperties mode="Message" sslEnabled="false">
    < messageSecurity authorizationInfo="[MyPrimaryAccessKey]" />
    < /securityProperties>
    < /dataCacheClient>
    

Let me know if I am missing any step.

Thanks in advance.

Additional Information:

I am getting - 'RoleEnvironment.IsAvailable' false

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.