Ich habe ein Projekt in Azure implementiert, indem ich ein Paket aus Visual Studio erstellt und es in Azure Portal importiert habe. Die Bereitstellung ist erfolgreich, aber die Instanzen bleiben im Status 'Beschäftigt'.Cloud-Dienst: Datei oder Assembly konnte nicht geladen werden 'System.Runtime, Version = 4.1.0.0'
Ich habe über Remotedesktop eine Verbindung zu einer Instanz hergestellt, und ich sehe den Fehler unten.
Wenn ich mich nicht irre, sollte ich die System.Runtime-Bibliothek nicht selbst einschließen. Darüber hinaus ist die Version in meinem GAC 4.0.0.0. Ich habe die neuesten Versionen von Visual Studio, Azure SDK usw. Das Projekt selbst zielt NET Framework 4.5
ich ratlos bin installiert, warum die Cloud-Service erwartet System.Runtime 4.1.0.0 ... Jede Hilfe wird geschätzt!
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.<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()
</Data>
</EventData>
</Event>
[System.Runtime] (https://www.nuget.org/packages/System.Runtime/4.1.0) stellt das Kernpaket dar. Welche Pakete verwendest du in deinem Projekt? Könntest du 'packages.config' bereitstellen? Kann Ihr Cloud-Projekt außerdem auf Ihrer lokalen Seite wie erwartet ausgeführt werden? –