2017-10-11 6 views
0

Visual Studio에서 패키지를 만들고 Azure 포털에서 가져 와서 Azure에 프로젝트를 배포했습니다. 배포는 성공하지만 인스턴스는 '사용 중'상태로 유지됩니다.Cloud Service : 파일 또는 어셈블리 'System.Runtime, Version = 4.1.0.0'을로드 할 수 없습니다.

원격 데스크톱을 통해 인스턴스에 연결했는데 아래 오류가 표시됩니다.

내가 잘못 본 경우가 아니라면 System.Runtime 라이브러리를 직접 포함하지 않아도됩니다. 그 외에 GAC의 버전은 4.0.0.0입니다. 나는 클라우드 서비스가 System.Runtime 4.1.0.0 기대하는 이유는 ... 손실에있어 닷넷 프레임 워크 4.5

을 목표로하고있다 비주얼 스튜디오, 푸른 SDK 등 프로젝트 자체의 최신 버전을 설치 한 어떤 도움을 주시면 감사하겠습니다!

Log Name:  Windows Azure 
Source:  Windows Azure Runtime 2.7.0.0 
Date:   10/11/2017 10:33:54 AM 
Event ID:  2001 
Task Category: None 
Level:   Error 
Keywords:  Classic 
User:   N/A 
Computer:  *** 
Description: 
An unhandled exception occurred. Type: System.IO.FileNotFoundException Process ID: 3252 
Process Name: WaIISHost 
Thread ID: 5 
AppDomain Unhandled Exception for role *** 
Exception: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 
    at ***.***.WebRole.OnStart() 
    at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum) 
    at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.<InitializeRole>b__0() 
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
    at System.Threading.ThreadHelper.ThreadStart() 


Event Xml: 
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> 
    <System> 
    <Provider Name="Windows Azure Runtime 2.7.0.0" /> 
    <EventID Qualifiers="49152">2001</EventID> 
    <Level>2</Level> 
    <Task>1</Task> 
    <Keywords>0x80000000000000</Keywords> 
    <TimeCreated SystemTime="2017-10-11T10:33:54.000000000Z" /> 
    <EventRecordID>726</EventRecordID> 
    <Channel>Windows Azure</Channel> 
    <Computer>***</Computer> 
    <Security /> 
    </System> 
    <EventData> 
    <Data>System.IO.FileNotFoundException</Data> 
    <Data>Process ID: 3252 
Process Name: WaIISHost 
Thread ID: 5 
AppDomain Unhandled Exception for role *** 
Exception: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 
    at ***.***.WebRole.OnStart() 
    at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.InitializeRoleInternal(RoleType roleTypeEnum) 
    at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.&lt;InitializeRole&gt;b__0() 
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
    at System.Threading.ThreadHelper.ThreadStart() 

</Data> 
    </EventData> 
</Event> 
+1

[System.Runtime] (https://www.nuget.org/packages/System.Runtime/4.1.0)은 핵심 패키지를 나타냅니다. 프로젝트에서 어떤 패키지를 사용하고 있습니까?'packages.config'를 제공 할 수 있습니까? 또한 클라우드 프로젝트가 로컬 측에서 예상대로 실행될 수 있습니까? –

답변

0

어떤 이유로 든 내 핵심 프로젝트가 추가 된 것으로 나타났습니다. 내 프로젝트 파일을 이전 버전으로 되돌리고 모든 코드 변경 사항을 다시 포함했습니다. 그런 다음 패키지가 클라우드 서비스에서 다시 실행됩니다.