【问题标题】:Conflict found in Assemblies - azure cosmosdb assemblies在程序集中发现冲突 - azure cosmosdb 程序集
【发布时间】:2018-04-18 15:49:07
【问题描述】:

我是 C# 新手,我被分配了一个基于 Azure CosmosDB 的项目。 我正在尝试开发 MVC 并将其与 Azure CosmosDB 集成。 我收到以下错误:

=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Azure.Documents.Client, Version=1.20.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///C:/Users/sss/source/repos/StorageAspNet/StorageAspNet/
LOG: Initial PrivatePath = C:\Users\sss\source\repos\StorageAspNet\StorageAspNet\bin
Calling assembly : Microsoft.Azure.CosmosDB.Table, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\sss\source\repos\StorageAspNet\StorageAspNet\web.config
LOG: Using host configuration file: C:\Users\sss\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Microsoft.Azure.Documents.Client, Version=1.20.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/Users/sss/AppData/Local/Temp/Temporary ASP.NET Files/vs/e10709d8/d578a8f8/Microsoft.Azure.Documents.Client.DLL.
LOG: Attempting download of new URL file:///C:/Users/sss/AppData/Local/Temp/Temporary ASP.NET Files/vs/e10709d8/d578a8f8/Microsoft.Azure.Documents.Client/Microsoft.Azure.Documents.Client.DLL.
LOG: Attempting download of new URL file:///C:/Users/sss/source/repos/StorageAspNet/StorageAspNet/bin/Microsoft.Azure.Documents.Client.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

但是我安装的程序集之间存在一些冲突。我不确定是什么问题,所以我发布了上面的日志。

我也在下面收到此警告,我认为这是我在运行应用程序时遇到错误的原因。

Warning     Found conflicts between different versions of "Microsoft.Azure.Documents.Client" that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.  StorageAspNet           

【问题讨论】:

    标签: c# azure assemblies


    【解决方案1】:

    我可以通过将Microsoft.Azure.DocumentDB 更新到1.20 或更高版本来解决此问题。看起来Microsoft.Azure.CosmosDB.Table 的nuspec 可能存在问题,因为它只为Microsoft.Azure.DocumentDB 指定版本> = 1.19.0,但它确实需要更高版本。对我来说,它只选择了 1.19.1 版本,这导致了与您看到的相同的错误。

    【讨论】:

      猜你喜欢
      • 2018-10-19
      • 2013-07-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多