Azure WebApps - cannot load ServiceRuntime after upgrade to Azure 2.6

1.1k Views Asked by At

After upgrading to Azure 2.6 (from 2.5) and publishing web into Azure Web Apps, the web fails to start with exception below. It seems Azure 2.6 is not yet available at Web Apps. Anyone experiences this?

Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=2.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

1

There are 1 best solutions below

2
On

Try add the reference manually from the SDK directory and create a binding redirects.

C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.6\ref\Microsoft.WindowsAzure.ServiceRuntime.dll

 <dependentAssembly>
    <assemblyIdentity name="WindowsAzureTelemetryEvents" culture="neutral" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-2.6.0.0" newVersion="2.6.0.0" />
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="WindowsAzureEventSource" culture="neutral" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-2.6.0.0" newVersion="2.6.0.0" />
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="msshrtmi" culture="neutral" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-2.6.0.0" newVersion="2.6.0.0" />
  </dependentAssembly>
  <dependentAssembly>
    <assemblyIdentity name="Microsoft.WindowsAzure.ServiceRuntime" culture="neutral" publicKeyToken="31bf3856ad364e35" />
    <bindingRedirect oldVersion="0.0.0.0-2.6.0.0" newVersion="2.6.0.0" />
  </dependentAssembly>