简体   繁体   English

Azure批处理作业错误:无法加载文件或程序集'Microsoft.Data.OData

[英]Azure batch job error:Could not load file or assembly 'Microsoft.Data.OData

I read https://azure.microsoft.com/en-us/documentation/articles/batch-dotnet-get-started/#step-2-upload-task-application-and-data-files and downloaded the sample file. 我阅读了https://azure.microsoft.com/zh-cn/documentation/articles/batch-dotnet-get-started/#step-2-upload-task-application-and-data-files并下载了示例文件。

I could run the sample without any issues. 我可以运行该示例,而不会出现任何问题。 However , when I created a new application as a batch job with azure, I found this error in the log. 但是,当我使用azure将新应用程序创建为批处理作业时,在日志中发现了此错误。

It seems like it could not find the reference. 似乎找不到参考。 I can run my console app locally without any issue. 我可以在本地运行控制台应用程序,而不会出现任何问题。

Base on the sample , for the job, we only need to upload the exe file to the container instead of zip the whole projects. 基于示例,对于这项工作,我们只需要将exe文件上传到容器中,而无需压缩整个项目。 Can anyone help me to solve this issue. 谁能帮我解决这个问题。

This is my error message: 这是我的错误信息:

Unhandled Exception: Microsoft.WindowsAzure.Storage.StorageException: Could not load file or assembly 'Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
   at Microsoft.WindowsAzure.Storage.Table.Protocol.TableOperationHttpWebRequestFactory.BuildRequestForTableOperation(Uri uri, UriQueryBuilder builder, IBufferManager bufferManager, Nullable`1 timeout, TableOperation operation, Boolean useVersionHeader, OperationContext ctx, TableRequestOptions options, String accountName)
   at Microsoft.WindowsAzure.Storage.Table.TableOperation.<>c__DisplayClass18.<RetrieveImpl>b__15(Uri uri, UriQueryBuilder builder, Nullable`1 timeout, Boolean useVersionHeader, OperationContext ctx)
   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ProcessStartOfRequest[T](ExecutionState`1 executionState, String startLogMessage)
   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
   --- End of inner exception stack trace ---
   at Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext)
   at Microsoft.WindowsAzure.Storage.Table.TableOperation.Execute(CloudTableClient client, CloudTable table, TableRequestOptions requestOptions, OperationContext operationContext)
   at Microsoft.WindowsAzure.Storage.Table.CloudTable.Exists(Boolean primaryOnly, TableRequestOptions requestOptions, OperationContext operationContext)
   at Microsoft.WindowsAzure.Storage.Table.CloudTable.CreateIfNotExists(TableRequestOptions requestOptions, OperationContext operationContext)
   at IpAddressDetect.Program.Main(String[] args)

Any task that is to be executed on a compute node must have all of its dependencies as well. 要在计算节点上执行的任何任务也必须具有其所有依赖性。 In the stack trace, it appears that your task depends on the Azure Storage assembly which in-turn requires OData assemblies (among others). 在堆栈跟踪中,您的任务似乎依赖于Azure存储程序集,而该程序集又需要OData程序集(以及其他)。 All of these must be packaged up as an Application Package, a single .zip resource file, or multiple resource files individually. 所有这些都必须打包为应用程序包,单个.zip资源文件或单独的多个资源文件。

暂无
暂无

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

相关问题 在开发期间访问Azure存储时无法加载程序集“Microsoft.Data.OData” - Could not load assembly 'Microsoft.Data.OData' when accessing Azure Storage during development WebAPI OData无法加载microsoft.data.odata版本= 5.6.0.0 - WebAPI OData could not load microsoft.data.odata version=5.6.0.0 无法加载文件或程序集&#39;Microsoft.Data.OData,Version = 5.6.4.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35&#39;或其依赖项之一 - Could not load file or assembly 'Microsoft.Data.OData, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies Microsoft.AspNet.WebApi.OData与Microsoft.Data.OData和Microsoft.AspNet.OData有什么区别? - What is the difference between Microsoft.AspNet.WebApi.OData and Microsoft.Data.OData and Microsoft.AspNet.OData? 无法加载文件或程序集&#39;Microsoft.Azure.AppConfiguration.AzconfigClient - Could not Load file or assembly 'Microsoft.Azure.AppConfiguration.AzconfigClient 无法加载文件或程序集“Microsoft.Azure.Management.ServiceBus.Fluent” - Could not load file or assembly 'Microsoft.Azure.Management.ServiceBus.Fluent' 无法加载文件或程序集&#39;Microsoft.Azure.Graphs&#39; - Could not load file or assembly 'Microsoft.Azure.Graphs' 运行时错误:无法加载文件或程序集&#39;Microsoft.Owin,版本= 3.0.0.0…Azure移动服务 - Runtime error: Could not load file or assembly 'Microsoft.Owin, Version=3.0.0.0…Azure mobile services 在Azure函数App中无法加载文件或程序集Microsoft.EntityFrameworkCore错误 - Could not load file or assembly Microsoft.EntityFrameworkCore Error in azure functions App 错误:无法加载文件或程序集 'Microsoft.Extensions.DependencyInjection.Abstractions,版本 = 3.1.0.0,在 Azure function 1 - Error: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.0.0, in Azure function 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM