1

最近、Azure SDK 1.8 に更新しましたが、生成されたコード ファイルに次のようなエラーが含まれています。

  /// <summary>
    /// Gets the context that is registered as a lifetime object with the current application.
    /// </summary>
    /// <exception cref="InvalidOperationException"> is thrown if there is no current application,
    /// no contexts have been added, or more than one context has been added.
    /// </exception>
    /// <seealso cref="System.Windows.Application.ApplicationLifetimeObjects"/>
    public new static WebContext Current
    {
        get
        {
            return ((WebContext)(WebContextBase.Current));
        }
    }

ジャラル

4

1 に答える 1

0

今のところ、次の解決策を見つけました。次のコードを app.config および web.config に追加します。

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="Microsoft.WindowsAzure.StorageClient" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    <bindingRedirect oldVersion="1.1.0.0" newVersion="1.7.0.0" />
  </dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="Microsoft.ServiceBus" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    <bindingRedirect oldVersion="1.6.0.0" newVersion="1.7.0.0" />
  </dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <dependentAssembly>
    <assemblyIdentity name="Microsoft.ApplicationServer.Caching.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    <bindingRedirect oldVersion="101.0.0.0" newVersion="1.0.4655.0" />
  </dependentAssembly>
</assemblyBinding>

于 2012-11-29T07:47:38.687 に答える