简体   繁体   English

Microsoft.Windows.Azurestorage.dll版本6.0.0中的Sysytem.EntryPointNotFoundException

[英]Sysytem.EntryPointNotFoundException in Microsoft.Windows.Azurestorage.dll version 6.0.0

I am using Microsoft.WindowsAzure.Storage.dll version 6.0.0 for working with Azure table storage. 我正在使用Microsoft.WindowsAzure.Storage.dll版本6.0.0来处理Azure表存储。 While adding a new entry in the table, I am getting following error. 在表格中添加新条目时,出现以下错误。

Line of code throwing error: 代码行抛出错误:

var operation = TableOperation.InsertOrReplace(entity);

await this.CloudTable.ExecuteAsync(operation).ConfigureAwait(false); -> // Throws error -> //引发错误

where entity is of type TableEntity 其中实体的类型为TableEntity

I have referenced following assemblies: 我引用了以下程序集:

<package id="Microsoft.Azure.KeyVault.Core" version="1.0.0" targetFramework="net451" />
<package id="Microsoft.Data.Edm" version="5.6.4" targetFramework="net451" />
<package id="Microsoft.Data.OData" version="5.6.4" targetFramework="net451" />
<package id="Microsoft.Data.Services.Client" version="5.6.4" targetFramework="net451" />
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
<package id="System.Spatial" version="5.6.4" targetFramework="net451" />
<package id="WindowsAzure.Storage" version="6.0.0" targetFramework="net451" />

Note: The code execute fine when run on my local machine, but throws above exception when run on a different environment which we don't own. 注意:代码在我的本地计算机上运行时可以很好地执行,但是在我们不拥有的其他环境中运行时,则会引发异常。 (Different set of machines hosted somewhere else, and also we don't have access to these machines) (托管在其他位置的不同计算机集,并且我们也无法访问这些计算机)

Error: 错误:

Error: System.EntryPointNotFoundException: Entry point was not found.#R##N# at Microsoft.WindowsAzure.Storage.Table.ITableEntity.get_PartitionKey()#R##N# at Microsoft.WindowsAzure.Storage.Table.TableOperation.GenerateCMDForOperation(CloudTableClient client, CloudTable table, TableRequestOptions modifiedOptions)#R##N# 错误:System.EntryPointNotFoundException:找不到入口点。Microsoft.WindowsAzure.Storage.Table.ITableEntity.get_PartitionKey()#R ## N#在Microsoft.WindowsAzure.Storage.Table.TableOperation.GenerateCMDForOperation (CloudTableClient客户端,CloudTable表,TableRequestOptionsmodifiedOptions)#R ## N#
at Microsoft.WindowsAzure.Storage.Table.TableOperation.BeginExecute(CloudTableClient client, CloudTable table, TableRequestOptions requestOptions, OperationContext operationContext, AsyncCallback callback, Object state)#R##N# at Microsoft.WindowsAzure.Storage.Table.CloudTable.BeginExecute(TableOperation operation, TableRequestOptions requestOptions, OperationContext operationContext, AsyncCallback callback, Object state)#R##N# at Microsoft.WindowsAzure.Storage.Table.CloudTable.BeginExecute(TableOperation operation, AsyncCallback callback, Object state)#R##N# at Microsoft.WindowsAzure.Storage.Core.Util.AsyncExtensions.TaskFromApm[T1,TResult](Func 4 beginMethod, Func 2 endMethod, T1 arg1, CancellationToken cancellationToken)#R##N# at Microsoft.WindowsAzure.Storage.Table.CloudTable.ExecuteAsync(TableOperation operation, CancellationToken cancellationToken)#R##N# at Microsoft.WindowsAzure.Storage.Table.CloudTable.ExecuteAsync(TableOperation operation)#R##N# at Microsoft.OnlinePublishing.Re 在Microsoft.WindowsAzure.Storage.Table.TableOperation.BeginExecute(CloudTableClient客户端,CloudTable表,TableRequestOptions requestOptions,OperationContext operationContext,AsyncCallback回调,对象状态)在Microsoft.WindowsAzure.Storage.Table.CloudTable.BeginExecute( TableOperation操作,TableRequestOptions requestOptions,OperationContext操作Context,AsyncCallback回调,对象状态)#R ## N#at Microsoft.WindowsAzure.Storage.Table.CloudTable.BeginExecute(TableOperation操作,AsyncCallback回调,对象状态)#R ## N#at Microsoft.WindowsAzure.Storage.Table.CloudTable上的Microsoft.WindowsAzure.Storage.Core.Util.AsyncExtensions.TaskFromApm [T1,TResult](函数4 beginMethod,Func 2 endMethod,T1 arg1,CancellationToken cancellingToken)#R ## N#。 ExecuteAsync(TableOperation操作,CancellationToken cancelleToken)#R ## N#在Microsoft.WindowsAzure.Storage.Table.CloudTable.ExecuteAsync(TableOperation操作)#R ## N#在Microsoft.OnlinePublishing.Re try.TaskRetryer 2.DoAction()#R##N#--- End of stack trace from previous location where exception was thrown ---#R##N# at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)#R##N# at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)#R##N# at System.Runtime.CompilerServices.ConfiguredTaskAwaitable 1.ConfiguredTaskAwaiter.GetResult()#R##N# at Microsoft.OnlinePublishing.Ingestion.Common.Cache.CloudTableManager.d__6 1.MoveNext() try.TaskRetryer 2.DoAction()#R ## N#---从前一个引发异常的位置开始的堆栈跟踪---#R ## N#在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务)#R ## N#在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)#R ## N#在System.Runtime.CompilerServices.ConfiguredTaskAwaitable 1.ConfiguredTaskAwaiter.GetResult()#R ## N#在Microsoft .OnlinePublishing.Ingestion.Common.Cache.CloudTableManager.d__6 1.MoveNext()

This exception indicates that there is a version mismatch of reference assembly "Microsoft.WindowsAzure.Storage.dll" between the assembly that defines your TableEntity type and the assembly that is operating on it. 此异常表明在定义您的TableEntity类型的程序集和对其进行操作的程序集之间,参考程序集“ Microsoft.WindowsAzure.Storage.dll”的版本不匹配。

Which version of "Microsoft.WindowsAzure.Storage.dll" is referenced by the assembly where your TableEntity type is defined? 定义TableEntity类型的程序集引用了哪个版本的“ Microsoft.WindowsAzure.Storage.dll”?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 F#和AzureStorage GetBlobContainer - F# and AzureStorage GetBlobContainer Windows Azure队列 - CloudQueue.GetMessage()不适用于最新版本的Microsoft.WindowsAzure.Storage(v5.0.0) - Windows Azure Queue - CloudQueue.GetMessage() not working for latest version of Microsoft.WindowsAzure.Storage (v5.0.0) AzureStorage 表查询:构建包含筛选器 - AzureStorage Table Query: Building a Contains Filter Microsoft.WindowsAzure.Storage.dll中发生未处理的“System.StackOverflowException”类型异常 - An unhandled exception of type 'System.StackOverflowException' occurred in Microsoft.WindowsAzure.Storage.dll Azure文件-如何获取Microsoft.WindowsAzure.Commands.Storage.File.dll? - Azure Files - How to obtain Microsoft.WindowsAzure.Commands.Storage.File.dll? AzureStorage:服务器未能对请求进行身份验证。 确保 Authorization header 的值正确形成,包括签名 - AzureStorage: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature System.OutOfMemoryException发生在Microsoft.WindowsAzure.StorageClient.dll中 - System.OutOfMemoryException occurred in Microsoft.WindowsAzure.StorageClient.dll AzureStorage库v2中的“tableClient.CreateTableIfNotExist”在哪里? - Where is the “tableClient.CreateTableIfNotExist” in AzureStorage library v2? VS 2013 Windows Azure中有关程序集Microsoft.WindowsAzure.Storage.Emulator.Controller的运行时错误 - Runtime error in VS 2013 Windows Azure regarding an assembly Microsoft.WindowsAzure.Storage.Emulator.Controller Microsoft.WindowsAzure.Storage.dll中出现“Microsoft.WindowsAzure.Storage.StorageException”类型的第一次机会异常 - A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dll
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM