J'ai déployé un projet sur Azure en créant un package à partir de Visual Studio et en l'important dans le portail Azure. Le déploiement réussit, mais les instances restent dans l'état 'Occupé'.Service Cloud: Impossible de charger le fichier ou l'assembly 'System.Runtime, Version = 4.1.0.0'
Je me suis connecté à une instance via le bureau à distance et je vois l'erreur ci-dessous. Sauf erreur, je ne suis pas censé inclure la bibliothèque System.Runtime moi-même. En plus de cela, la version dans mon GAC est 4.0.0.0. J'ai installé les dernières versions de Visual Studio, Azure SDK etc. Le projet lui-même vise NET Framework 4.5
Je suis à une perte pourquoi le service Cloud attend System.Runtime 4.1.0.0 ... Toute aide serait appréciée!
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) représente le package principal. Quels paquets utilisez-vous dans votre projet, pourriez-vous fournir 'packages.config'? De plus, votre projet cloud pourrait-il fonctionner comme prévu sur votre site local? –