나는 https://azure.microsoft.com/en-us/documentation/articles/batch-dotnet-get-started/#step-2-upload-task-application-and-data-files을 읽고 샘플 파일을 다운로드했습니다.Azure 배치 작업 오류 : 파일 또는 어셈블리를로드 할 수 없습니다. 'Microsoft.Data.OData
아무런 문제없이 샘플을 실행할 수 있습니다. 그러나 azure로 배치 작업으로 새 응용 프로그램을 만들었을 때 로그에서이 오류를 발견했습니다.
참조를 찾을 수없는 것 같습니다. 콘솔 앱을 아무 문제없이 로컬로 실행할 수 있습니다.
샘플을 기반으로 전체 프로젝트를 압축하지 않고 exe 파일을 컨테이너에 업로드하면됩니다. 누구든지이 문제를 해결하도록 도와 줄 수 있습니까?
이 내 오류 메시지입니다 :뿐만 아니라 모든 종속성이 있어야 컴퓨팅 노드에서 실행될
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)
컴파일 된 TaskApplication을 ZIP 패키지로 푸른 패치 서비스의 응용 프로그램에 업로드 해보시겠습니까? 내 경험에 기초하여 EXE 파일에 다른 DLL 라이브러리가 사용 되었다면 함께 사용해야합니다. –