- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
在尝试添加对提供存储帐户功能访问权限的 Azure 库的引用后,我当前收到以下错误。
这是我面临的问题:
Could not load file or assembly "Microsoft.WindowsAzure.Storage, Version=9.3.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.
我通过 NuGet 在我的解决方案中使用此代码的项目中安装了该项目。
我已经验证了以下内容:
package id="WindowsAzure.Storage"version="9.3.2"targetFramework="net47"/>
。我觉得微软有点奇怪。前面不见了。但是,在 NuGet 存储 .dll 的包文件夹中也可以通过这种方式完成此操作所以,我有点不知道问题出在哪里,因为老实说,所有版本对我来说似乎都很好。
有什么想法吗?
编辑:
这是我的packages.config:
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="EntityFramework" version="6.2.0" targetFramework="net47" />
<package id="JetBrains.Annotations" version="2018.2.1" targetFramework="net47" />
<package id="Microsoft.AspNet.Mvc" version="5.2.6" targetFramework="net47" />
<package id="Microsoft.AspNet.Razor" version="3.2.6" targetFramework="net47" />
<package id="Microsoft.AspNet.WebApi" version="5.2.6" targetFramework="net47" />
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.6" targetFramework="net47" />
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.6" targetFramework="net47" />
<package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.6" targetFramework="net47" />
<package id="Microsoft.AspNet.WebPages" version="3.2.6" targetFramework="net47" />
<package id="Microsoft.Azure.KeyVault.Core" version="1.0.0" targetFramework="net47" />
<package id="Microsoft.Data.Edm" version="5.6.4" targetFramework="net47" />
<package id="Microsoft.Data.OData" version="5.6.4" targetFramework="net47" />
<package id="Microsoft.Data.Services.Client" version="5.6.4" targetFramework="net47" />
<package id="Microsoft.Owin" version="4.0.0" targetFramework="net47" />
<package id="Microsoft.Owin.Host.SystemWeb" version="4.0.0" targetFramework="net47" />
<package id="Microsoft.Owin.Security" version="3.0.1" targetFramework="net47" />
<package id="Microsoft.Owin.Security.Cookies" version="3.0.1" targetFramework="net47" />
<package id="Microsoft.Owin.Security.OAuth" version="3.0.1" targetFramework="net47" />
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net47" />
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="3.2.3" targetFramework="net47" />
<package id="Newtonsoft.Json" version="10.0.2" targetFramework="net47" />
<package id="Ninject" version="3.3.4" targetFramework="net47" />
<package id="Owin" version="1.0" targetFramework="net47" />
<package id="System.Spatial" version="5.6.4" targetFramework="net47" />
<package id="WindowsAzure.Storage" version="9.3.2" targetFramework="net47" />
</packages>
我的引用资料:
还有我的 app.config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Ninject" publicKeyToken="c7192dc5380945e7" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.3.4.0" newVersion="3.3.4.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.2.6.0" newVersion="5.2.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.OAuth" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Owin.Security.Cookies" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="mssqllocaldb" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>
另外我刚刚检查了我的.csproj,这里的路径也是正确的。
最佳答案
我终于猜对了!
如果其他人来这里寻找解决方案,我的问题如下:
此问题发生在解决方案内的项目中,而主项目(WebRole)显然也有此依赖项的旧版本。
我将构建日志设置为登录诊断级别而不是正常日志,在那里我发现 1. 我的 WebRole 具有该依赖性,2. 我的 WebRole 使用了旧版本,该版本与我的项目中给出的版本发生冲突。
我仍然不清楚为什么会产生干扰,但我通过清除未使用的引用解决了这个问题,现在,它可以工作了。
关于c# - HRESULT : 0x80131040 - Microsoft. WindowsAzure. 未找到存储,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54639686/
这两个程序集有什么区别以及何时应该使用它们?我发现它们之间存在类名冲突,所以我想我应该只使用一个。 示例 Microsoft.WindowsAzure.Storage 具有 Microsoft.Win
有一段时间,我在尝试使用 Azure 模拟器启动任何类型的应用程序时遇到以下错误: Microsoft Azure Tools: Method not found: 'Void Microsoft.W
我正在尝试使用队列,这是我遇到的异常: A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageExceptio
我使用的是 WindowsAzure.Storage 9.1.1。 它声明它依赖于 Newtonsoft >= 10.0.2 我使用的是 .NET Framework 4.5 我安装了 Newtons
我正在 Azure 数据工厂中运行自定义事件,当我尝试在 CloudAppendBlob 上工作时,会发生以下异常。看起来像是版本问题,但无法找到解决方法。我使用 Windows Azure Stor
我已连接到我的一个 WebRole 实例。但现在我能做什么呢?我启动服务器管理器并导航到角色 -> WebServer -> RD00123...,但我看到的似乎不是事件实例。当我单击“浏览网站”时,
我应该使用哪个版本的 WindowsAzure.Storage? https://www.nuget.org/packages/WindowsAzure.Storage/ 我有以下环境 - Micro
当我运行 Azure 项目时,我每 20 秒左右就会在输出中收到此消息: Microsoft.WindowsAzure.ServiceRuntime Verbose: 500 : Role insta
对 Azure SDK 各个部分的项目引用应该存在于 Azure SDK 的安装中,但由于某些奇怪的原因,我的代码(Azure 移动服务)无法再看到 Microsoft.WindowsAzure.Di
我正在尝试使用 Composer 安装 zendservice-windowsazure。我的composer.json 如下所示: { "repositories": [{
我正在努力连接我正在使用 ionic 框架制作的移动应用程序,并且正在努力将其连接到 Azure。 azure 网站说将以下代码行添加到我的 app.component.ts 中: declare v
目前我的应用程序使用 WindowsAzure.ServiceBus 2.8.2 包,我可以在 Fiddler 上检查是否存在到 https://{your-namespace}.accesscont
我需要导入 WindowsAzure 以在我的 ionic 项目中使用。 从“cordova-plugin-ms-azure-mobile-apps”导入 { WindowsAzure }; 无法导入
我无法在 Windows 通用应用程序中安装 NuGet 包。 我认为这可能是因为配置管理器与 Windows 通用应用程序不兼容,但现在我的 ServiceBus 包也遇到了同样的问题。 当我尝试通
我们目前正在尝试设置一个 Angular 2 项目,该项目的解决方案中还包含一个云服务项目。我们已经建立了许多包含云服务项目的 Angular 1 项目,并且没有出现任何错误。当尝试为 Angular
我有一个通过 git 部署的 Azure 网站设置,但是当我这样做时,我收到一个编译器错误,指出: D:\Windows\Microsoft.NET\Framework\v4.0.30319\Micr
我们的 azure 构建存在问题,只有在 csdef 文件的 WebRole/Contents/Content/SourceDirectory 部分中使用绝对路径才能使其正常工作。尽管它确实支持相对路
我有一个通过 git 部署的 Azure 网站设置,但是当我这样做时,我收到一个编译器错误,指出: D:\Windows\Microsoft.NET\Framework\v4.0.30319\Micr
我们的 azure 构建存在问题,只有在 csdef 文件的 WebRole/Contents/Content/SourceDirectory 部分中使用绝对路径才能使其正常工作。尽管它确实支持相对路
当我尝试将项目部署到云服务(使用持续部署和托管构建 Controller )时,我突然开始收到此错误。 C:\Program Files (x86)\MSBuild\Microsoft\VisualS
我是一名优秀的程序员,十分优秀!