dotnet / orleans

Cloud Native application framework for .NET
https://docs.microsoft.com/dotnet/orleans
MIT License
10.11k stars 2.04k forks source link

Provider of type Orleans.Storage.AzureTableStorage name AzureStore was not loaded. #1235

Closed elmortega closed 8 years ago

elmortega commented 8 years ago

I'm working with v1.1.0-VSIX

I checked and the assembly OrleansAzureUtils.dll is in the bin/Debug folder

Exc level 0: System.AggregateException: Se han producido uno o varios errores.
   en System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   en System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   en System.Threading.Tasks.Task.Wait(TimeSpan timeout)
   en Orleans.OrleansTaskExtentions.WaitWithThrow(Task task, TimeSpan timeout)
   en Orleans.Runtime.Silo.DoStart()
   en Orleans.Runtime.Silo.Start()
   en Orleans.Runtime.Host.SiloHost.StartOrleansSilo()
Exc level 1: Orleans.Runtime.OrleansException: Provider of type Orleans.Storage.AzureTableStorage name AzureStore was not loaded.Please check that you deployed the assembly in which the provider class is defined to the execution folder.
   en Orleans.Providers.ProviderLoader`1.ValidateProviders()
   en Orleans.Runtime.Storage.StorageProviderManager.LoadStorageProviders(IDictionary`2 configs)
   en Orleans.Runtime.Scheduler.SchedulerExtensions.<>c__DisplayClassa.<<QueueTask>b__8>d__c.MoveNext()
Exception thrown: 'System.SystemException' in SiloHost1.exe
SiloHost1.vshost.exe Error: 0 : [2016-01-05 20:58:46.191 GMT     9  ERROR   100105  OrleansSiloHost 127.0.0.1:11111]    !!!!!!!!!! ERROR starting Orleans silo name=DCLOEORTEGA Exception=
Exc level 0: System.SystemException: Failed to start Orleans silo 'DCLOEORTEGA' as a Primary node.
   en SiloHost1.OrleansHostWrapper.Run() en C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\OrleansHostWrapper.cs:línea 66 
Exc level 0: System.SystemException: Failed to start Orleans silo 'DCLOEORTEGA' as a Primary node.
   en SiloHost1.OrleansHostWrapper.Run() en C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\OrleansHostWrapper.cs:línea 66
sergeybykov commented 8 years ago

Are you sure OrleansAzureUtils.dll is in the folder the silo is starting from? It's unclear from the exception message if it's starting from the same bin/debug.

gabikliot commented 8 years ago

The easiest in those cases is to look in the silo log file, it prints the execution folder and all the dll it found and inspected to find grains and providers. If you are not sure, just share the log.

centur commented 8 years ago

Do you have a valid record for that provider Name in your server config file like this:

<OrleansConfiguration xmlns="urn:orleans">
  <!-- see http://dotnet.github.io/orleans/Orleans-Configuration-Guide/Typical-Configurations -->
  <StorageProviders>
    <Provider Name="AzureStore" Type="Orleans.Storage.AzureTableStorage" DataConnectionString="<snip>" />
etc ...
jthelin commented 8 years ago

The silo log also will contain the silo "config dump" record, which among other things will show a list of providers that were detected in the config file.

For example:

   Providers:
       StorageProviders:
           Name=PartitionManagerStore, Type=Orleans.Storage.MemoryStorage, Properties=[DeploymentId, DataConnectionString]
           Name=MemoryStore, Type=Orleans.Storage.MemoryStorage, Properties=[DeploymentId, DataConnectionString]
           Name=Default, Type=Orleans.Storage.MemoryStorage, Properties=[DeploymentId, DataConnectionString]

One of the most common config errors is to have the *Providers elements in the wrong parent element block in the silo config file (they should go under <OrleansConfiguration><Globals>), and the silo's config dump will show that.

Another common problem if using MsTest [or other test frameworks that use "shadow copy" functionality to preserve test isolation] is that the test framework may exclude some assemblies that are not explicitly "referenced". So what is in the Bin\Debug directory may not be in the test run directory when the test is called. As @gabikliot mentions - the AssemblyLoader trace in the silo log file will show whether the assembly is being founded / loaded at runtime. Adding a [DeploymentItem("Assembly.dll")] attribute to the test class is the usual way to fix that problem for MsTest.

elmortega commented 8 years ago
[2016-01-08 14:47:54.347 GMT    10  INFO    100404  Silo    127.0.0.1:11111]    Silo starting with GC settings: ServerGC=True GCLatencyMode=Batch   
[2016-01-08 14:47:54.359 GMT    10  INFO    100403  Silo    127.0.0.1:11111]    -------------- Initializing Primary silo on host DCLOEORTEGA MachineName DCLOEORTEGA at 127.0.0.1:11111, gen 189960474 --------------   
[2016-01-08 14:47:54.387 GMT    10  INFO    100415  Silo    127.0.0.1:11111]    Starting silo DCLOEORTEGA with runtime Version='1.1.0.0 (Release).' .NET version='4.0.30319.42000' Is .NET 4.5=True OS version='Microsoft Windows NT 6.1.7601 Service Pack 1' Config= 
Config File Name: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\DevTestServerConfiguration.xml
Host: DCLOEORTEGA
Start time: 2016-01-08 14:47:54.366 GMT
Primary node: 127.0.0.1:11111
Platform version info:
   .NET version: 4.0.30319.42000
   Is .NET 4.5=True
   OS version: Microsoft Windows NT 6.1.7601 Service Pack 1
   GC Type=Server GCLatencyMode=Batch
Global configuration:
   System Ids:
      ServiceId: 00000000-0000-0000-0000-000000000000
      DeploymentId: byrmanager
   Subnet: 
   Seed nodes: 127.0.0.1:11111
   Messaging:
       Response timeout: 00:30:00
       Maximum resend count: 0
       Resend On Timeout: False
       Maximum Socket Age: 10675199.02:48:05.4775807
       Drop Expired Messages: True
       Silo Sender queues: 8
       Gateway Sender queues: 8
       Use standard (.NET) serializer: False
       Use fallback json serializer: False
       Buffer Pool Buffer Size: 4096
       Buffer Pool Max Size: 10000
       Buffer Pool Preallocation Size: 250
       Use Message Batching: False
       Max Message Batching Size: 10
       Maximum forward count: 2
   Liveness:
      LivenessEnabled: True
      LivenessType: MembershipTableGrain
      ProbeTimeout: 00:00:10
      TableRefreshTimeout: 00:01:00
      DeathVoteExpirationTimeout: 00:02:00
      NumMissedProbesLimit: 3
      NumProbedSilos: 3
      NumVotesForDeathDeclaration: 2
      UseLivenessGossip: True
      IAmAliveTablePublishTimeout: 00:05:00
      NumMissedTableIAmAliveLimit: 2
      MaxJoinAttemptTime: 00:05:00
      ExpectedClusterSize: 20
   SystemStore:
      SystemStore ConnectionString: null
      Reminders ConnectionString: null
   Application:
      Defaults:
         Deactivate if idle for: 02:00:00

   PlacementStrategy: 
         Default Placement Strategy: RandomPlacement
         Deployment Load Publisher Refresh Time: 00:00:01
         Activation CountBased Placement Choose Out Of: 2
   Grain directory cache:
      Maximum size: 1000000 grains
      Initial TTL: 00:00:30
      Maximum TTL: 00:04:00
      TTL extension factor: 2.00
      Directory Caching Strategy: Adaptive
   Grain directory:
      Lazy deregistration delay: 00:01:00
      Client registration refresh: 00:05:00
   Reminder Service:
       ReminderServiceType: ReminderTableGrain
   Consistent Ring:
       Use Virtual Buckets Consistent Ring: True
       Num Virtual Buckets Consistent Ring: 30
   Providers:
       StorageProviders:
           Name=AzureStore, Type=Orleans.Storage.AzureTableStorage, Properties=[DataConnectionString]

Silo configuration:
   Silo Name: DCLOEORTEGA
   Generation: 189960474
   Host Name or IP Address: localhost
   DNS Host Name: DCLOEORTEGA
   Port: 11111
   Subnet: 
   Preferred Address Family: InterNetwork
   Proxy Gateway: 127.0.0.1:30000
   IsPrimaryNode: True
   Scheduler: 
         Max Active Threads: 8
         Processor Count: 8
         Delay Warning Threshold: 00:00:10
         Activation Scheduling Quantum: 00:00:00.1000000
         Turn Warning Length Threshold: 00:00:00.2000000
         Inject More Worker Threads: False
         MinDotNetThreadPoolSize: 200
         .NET thread pool sizes - Min: Worker Threads=8 Completion Port Threads=8
         .NET thread pool sizes - Max: Worker Threads=32767 Completion Port Threads=1000
         .NET ServicePointManager - DefaultConnectionLimit=200 Expect100Continue=False UseNagleAlgorithm=False
   Load Shedding Enabled: False
   Load Shedding Limit: 95
   SiloShutdownEventName: 
   Debug: 
   Tracing: 
     Default Trace Level: Info
     TraceLevelOverrides:
         Application ==> Info
     Trace to Console: True
     Trace File Name: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\DCLOEORTEGA-2016-01-08-14.47.53.300Z.log
     Write Messaging Traces: False
     LargeMessageWarningThreshold: 85000
     PropagateActivityId: False
     BulkMessageLimit: 5
   Statistics: 
     MetricsTableWriteInterval: 00:00:30
     PerfCounterWriteInterval: 00:00:30
     LogWriteInterval: 00:05:00
     WriteLogStatisticsToTable: True
     StatisticsCollectionLevel: Info

[2016-01-08 14:47:54.480 GMT    10  INFO    100445  Silo    127.0.0.1:11111]    Successfully loaded Orleans.Runtime.Startup.ConfigureStartupBuilder from OrleansDependencyInjection.dll 
[2016-01-08 14:47:56.276 GMT    10  INFO    100000  Scheduler.OrleansTaskScheduler  127.0.0.1:11111]    Starting OrleansTaskScheduler with 8 Max Active application Threads and 1 system thread.    
[2016-01-08 14:47:56.323 GMT    10  INFO    101010  Runtime.Messaging.IncomingMessageAcceptor   127.0.0.1:11111]    Opened a listening socket at address 127.0.0.1:11111    
[2016-01-08 14:47:56.330 GMT    10  INFO    101010  Runtime.Messaging.GatewayAcceptor   127.0.0.1:11111]    Opened a listening socket at address 127.0.0.1:30000    
[2016-01-08 14:47:56.355 GMT    10  INFO    100000  VirtualBucketsRingProvider  127.0.0.1:11111]    Starting VirtualBucketsRingProvider on silo S127.0.0.1:11111:189960474/xF8430AF7.   
[2016-01-08 14:47:56.402 GMT    10  INFO    103003  VirtualBucketsRingProvider  127.0.0.1:11111]    Added Server S127.0.0.1:11111:189960474/xF8430AF7. Current view: [S127.0.0.1:11111:189960474 -> <MultiRange: Size=x100000000, %Ring=100.000%>]  
[2016-01-08 14:47:56.405 GMT    10  INFO    103005  VirtualBucketsRingProvider  127.0.0.1:11111]    -NotifyLocalRangeSubscribers about old <(0 0], Size=x100000000, %Ring=100.000%> new <MultiRange: Size=x100000000, %Ring=100.000%> increased? True   
[2016-01-08 14:47:56.424 GMT    10  INFO    100294  SystemStatus    127.0.0.1:11111]    SystemStatus=Created    
[2016-01-08 14:47:56.426 GMT    10  INFO    100422  Silo    127.0.0.1:11111]    -------------- Started silo S127.0.0.1:11111:189960474, ConsistentHashCode F8430AF7 --------------  
[2016-01-08 14:47:56.429 GMT    10  INFO    100441  OrleansSiloHost 127.0.0.1:11111]    Silo shutdown event name: DCLOEORTEGA-Shutdown  
[2016-01-08 14:47:56.430 GMT    10  INFO    100442  OrleansSiloHost 127.0.0.1:11111]    Created and set shutdown event DCLOEORTEGA-Shutdown 
[2016-01-08 14:47:56.437 GMT    10  INFO    100294  SystemStatus    127.0.0.1:11111]    SystemStatus=Starting   
[2016-01-08 14:47:56.438 GMT    10  INFO    100401  Silo    127.0.0.1:11111]    Silo Start()    
[2016-01-08 14:47:56.440 GMT    10  INFO    100430  Silo    127.0.0.1:11111]    Configured ThreadPool.SetMinThreads() to values: 200,200. Previous values are: 8,8. 
[2016-01-08 14:47:56.441 GMT    10  INFO    100436  Silo    127.0.0.1:11111]    Configured .NET ServicePointManager to Expect100Continue=False, DefaultConnectionLimit=200, UseNagleAlgorithm=False to improve Azure storage performance.   
[2016-01-08 14:47:56.465 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    Searching for assemblies in C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug...    
[2016-01-08 14:47:56.668 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Microsoft.CodeAnalysis.CSharp.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.747 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Microsoft.CodeAnalysis.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.766 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Microsoft.Data.Edm.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.790 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Microsoft.Data.OData.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.807 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Microsoft.Data.Services.Client.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.812 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Microsoft.Extensions.DependencyInjection.Abstractions.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.817 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Microsoft.Extensions.DependencyInjection.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.821 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Microsoft.WindowsAzure.Configuration.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.840 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Microsoft.WindowsAzure.Storage.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.857 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Newtonsoft.Json.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.862 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Orleans.dll
    * Assembly filename is excluded.    
[2016-01-08 14:47:56.912 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\OrleansAzureUtils.dll
    * An assembly dependency [Microsoft.WindowsAzure.Storage, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, No se puede cargar el archivo o ensamblado 'Microsoft.WindowsAzure.Storage, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ni una de sus dependencias. La definición del manifiesto del ensamblado no coincide con la referencia al ensamblado. (Excepción de HRESULT: 0x80131040)] could not be loaded: 0   
[2016-01-08 14:47:56.918 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\OrleansCodeGenerator.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.922 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\OrleansDependencyInjection.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.928 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\OrleansRuntime.dll
    * Assembly filename is excluded.    
[2016-01-08 14:47:56.943 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\System.Collections.Immutable.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.959 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\System.Reflection.Metadata.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.968 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    User assembly ignored: C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\System.Spatial.dll
    * Assembly does not contain any acceptable grain types.
    * Assembly contains no types assignable from Orleans.Providers.IProvider.   
[2016-01-08 14:47:56.972 GMT    10  WARNING 101705  AssemblyLoader.Silo 127.0.0.1:11111]    Unable to find directory C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\Applications; skipping.  
[2016-01-08 14:47:56.976 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    Loading assembly C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\bin\Debug\OrleansProviders.dll...  
[2016-01-08 14:47:56.992 GMT    10  INFO    100000  AssemblyLoader.Silo 127.0.0.1:11111]    1 assemblies loaded.    
[2016-01-08 14:47:57.049 GMT    10  INFO    101711  AssemblyLoader.Silo 127.0.0.1:11111]    Loaded grain type summary for 5 types: 
Grain class Orleans.Runtime.Management.Orleans.Runtime.Management.ManagementGrain [1954798034 (0x7483D9D2)] from OrleansRuntime.dll implementing interfaces: Orleans.Runtime.Orleans.Runtime.IManagementGrain [-1734666656 (0x989B1660)]
Grain class Orleans.Runtime.MembershipService.Orleans.Runtime.MembershipService.GrainBasedMembershipTable [-2103923544 (0x8298ACA8)] from OrleansRuntime.dll implementing interfaces: Orleans.Orleans.IMembershipTableGrain [-1256503757 (0xB51B4633)]
Grain class Orleans.Runtime.ReminderService.Orleans.Runtime.ReminderService.GrainBasedReminderTable [-55315191 (0xFCB3F509)] from OrleansRuntime.dll implementing interfaces: Orleans.Orleans.IReminderTableGrain [-1135060418 (0xBC585A3E)]
Grain class Orleans.Storage.Orleans.Storage.MemoryStorageGrain [819348208 (0x30D642F0)] from OrleansRuntime.dll implementing interfaces: Orleans.Storage.Orleans.Storage.IMemoryStorageGrain [577125491 (0x22663C73)]
Grain class Orleans.Streams.Orleans.Streams.PubSubRendezvousGrain [1903070868 (0x716E8E94)] from OrleansRuntime.dll implementing interfaces: Orleans.Streams.Orleans.Streams.IPubSubRendezvousGrain [1746702088 (0x681C8F08)]

[2016-01-08 14:47:57.191 GMT    31  INFO    100000  Runtime.Messaging.IncomingMessageAgent/Application  127.0.0.1:11111]    Starting AsyncAgent Runtime.Messaging.IncomingMessageAgent/Application on managed thread 31 
[2016-01-08 14:47:57.104 GMT    19  INFO    100000  Runtime.Scheduler.WorkerPoolThread/5    127.0.0.1:11111]    Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/5 on managed thread 19   
[2016-01-08 14:47:57.141 GMT    23  INFO    100000  Runtime.Messaging.IncomingMessageAcceptor   127.0.0.1:11111]    Starting AsyncAgent Runtime.Messaging.IncomingMessageAcceptor on managed thread 23  
[2016-01-08 14:47:57.130 GMT    21  INFO    100000  Runtime.Scheduler.WorkerPoolThread/7    127.0.0.1:11111]    Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/7 on managed thread 21   
[2016-01-08 14:47:57.124 GMT    20  INFO    100000  Runtime.Scheduler.WorkerPoolThread/6    127.0.0.1:11111]    Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/6 on managed thread 20   
[2016-01-08 14:47:57.081 GMT    16  INFO    100000  Runtime.Scheduler.WorkerPoolThread/2    127.0.0.1:11111]    Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/2 on managed thread 16   
[2016-01-08 14:47:57.201 GMT    28  INFO    100000  Runtime.GrainDirectory.AdaptiveDirectoryCacheMaintainer`1   127.0.0.1:11111]    Starting AsyncAgent Runtime.GrainDirectory.AdaptiveDirectoryCacheMaintainer`1 on managed thread 28  
[2016-01-08 14:47:57.186 GMT    29  INFO    100000  Runtime.Messaging.IncomingMessageAgent/System   127.0.0.1:11111]    Starting AsyncAgent Runtime.Messaging.IncomingMessageAgent/System on managed thread 29  
[2016-01-08 14:47:57.163 GMT    24  INFO    100000  Runtime.Messaging.SiloMessageSender/PingSender  127.0.0.1:11111]    Starting AsyncAgent Runtime.Messaging.SiloMessageSender/PingSender on managed thread 24 
[2016-01-08 14:47:57.081 GMT    15  INFO    100000  Runtime.Scheduler.WorkerPoolThread/1    127.0.0.1:11111]    Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/1 on managed thread 15   
[2016-01-08 14:47:57.081 GMT    22  INFO    100000  Runtime.Scheduler.WorkerPoolThread/System.9 127.0.0.1:11111]    Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/System.9 on managed thread 22    
[2016-01-08 14:47:57.170 GMT    25  INFO    100000  Runtime.Messaging.SiloMessageSender/SystemSender    127.0.0.1:11111]    Starting AsyncAgent Runtime.Messaging.SiloMessageSender/SystemSender on managed thread 25   
[2016-01-08 14:47:57.081 GMT    14  INFO    100000  Runtime.Scheduler.WorkerPoolThread/0    127.0.0.1:11111]    Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/0 on managed thread 14   
[2016-01-08 14:47:57.170 GMT    30  INFO    100000  Runtime.Messaging.IncomingMessageAgent/Ping 127.0.0.1:11111]    Starting AsyncAgent Runtime.Messaging.IncomingMessageAgent/Ping on managed thread 30    
[2016-01-08 14:47:57.104 GMT    18  INFO    100000  Runtime.Scheduler.WorkerPoolThread/4    127.0.0.1:11111]    Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/4 on managed thread 18   
[2016-01-08 14:47:57.082 GMT    17  INFO    100000  Runtime.Scheduler.WorkerPoolThread/3    127.0.0.1:11111]    Starting AsyncAgent Runtime.Scheduler.WorkerPoolThread/3 on managed thread 17   
[2016-01-08 14:47:57.379 GMT    23  INFO    100328  Runtime.Messaging.IncomingMessageAcceptor   127.0.0.1:11111]    Stopping AsyncAgent Runtime.Messaging.IncomingMessageAcceptor that runs on managed thread 23    
[2016-01-08 14:47:57.445 GMT    10  INFO    100000  MembershipFactory   127.0.0.1:11111]    Creating membership oracle for type=MembershipTableGrain    
[2016-01-08 14:47:57.459 GMT    10  INFO    100000  ReminderFactory 127.0.0.1:11111]    Creating reminder system target for type=ReminderTableGrain 
[2016-01-08 14:47:57.513 GMT    14  INFO    100635  MembershipFactory   127.0.0.1:11111]    Creating membership table provider for type=MembershipTableGrain    
[2016-01-08 14:47:57.586 GMT    16  INFO    100637  GrainBasedMembershipTable   127.0.0.1:11111]    GrainBasedMembershipTable Activated.    
[2016-01-08 14:47:57.635 GMT    17  INFO    100507  Catalog 127.0.0.1:11111]    Before collection#1: memory=15MB, #activations=1, collector=<#Activations=0, #Buckets=0, buckets=[]>.   
[2016-01-08 14:47:57.643 GMT    17  INFO    100508  Catalog 127.0.0.1:11111]    After collection#1: memory=15MB, #activations=1, collected 0 activations, collector=<#Activations=0, #Buckets=0, buckets=[]>, collection time=00:00:00.0138181. 
[2016-01-08 14:47:57.661 GMT    17  ERROR   103108  ProviderLoader/IStorageProvider 127.0.0.1:11111]    !!!!!!!!!! Provider of type Orleans.Storage.AzureTableStorage name AzureStore was not loaded.Please check that you deployed the assembly in which the provider class is defined to the execution folder.    
[2016-01-08 14:47:57.694 GMT    10  ERROR   100439  Silo    127.0.0.1:11111]    !!!!!!!!!! Exception during Silo.Start  
Exc level 0: System.AggregateException: Se han producido uno o varios errores.
   en System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   en System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   en System.Threading.Tasks.Task.Wait(TimeSpan timeout)
   en Orleans.OrleansTaskExtentions.WaitWithThrow(Task task, TimeSpan timeout)
   en Orleans.Runtime.Silo.DoStart()
   en Orleans.Runtime.Silo.Start()
Exc level 1: Orleans.Runtime.OrleansException: Provider of type Orleans.Storage.AzureTableStorage name AzureStore was not loaded.Please check that you deployed the assembly in which the provider class is defined to the execution folder.
   en Orleans.Providers.ProviderLoader`1.ValidateProviders()
   en Orleans.Runtime.Storage.StorageProviderManager.LoadStorageProviders(IDictionary`2 configs)
   en Orleans.Runtime.Scheduler.SchedulerExtensions.<>c__DisplayClassa.<<QueueTask>b__8>d__c.MoveNext()
[2016-01-08 14:47:57.916 GMT    10  ERROR   100105  OrleansSiloHost 127.0.0.1:11111]    !!!!!!!!!! ERROR starting Orleans silo name=DCLOEORTEGA Exception=
Exc level 0: System.AggregateException: Se han producido uno o varios errores.
   en System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   en System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   en System.Threading.Tasks.Task.Wait(TimeSpan timeout)
   en Orleans.OrleansTaskExtentions.WaitWithThrow(Task task, TimeSpan timeout)
   en Orleans.Runtime.Silo.DoStart()
   en Orleans.Runtime.Silo.Start()
   en Orleans.Runtime.Host.SiloHost.StartOrleansSilo()
Exc level 1: Orleans.Runtime.OrleansException: Provider of type Orleans.Storage.AzureTableStorage name AzureStore was not loaded.Please check that you deployed the assembly in which the provider class is defined to the execution folder.
   en Orleans.Providers.ProviderLoader`1.ValidateProviders()
   en Orleans.Runtime.Storage.StorageProviderManager.LoadStorageProviders(IDictionary`2 configs)
   en Orleans.Runtime.Scheduler.SchedulerExtensions.<>c__DisplayClassa.<<QueueTask>b__8>d__c.MoveNext() 
Exc level 0: System.AggregateException: Se han producido uno o varios errores.
   en System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   en System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   en System.Threading.Tasks.Task.Wait(TimeSpan timeout)
   en Orleans.OrleansTaskExtentions.WaitWithThrow(Task task, TimeSpan timeout)
   en Orleans.Runtime.Silo.DoStart()
   en Orleans.Runtime.Silo.Start()
   en Orleans.Runtime.Host.SiloHost.StartOrleansSilo()
Exc level 1: Orleans.Runtime.OrleansException: Provider of type Orleans.Storage.AzureTableStorage name AzureStore was not loaded.Please check that you deployed the assembly in which the provider class is defined to the execution folder.
   en Orleans.Providers.ProviderLoader`1.ValidateProviders()
   en Orleans.Runtime.Storage.StorageProviderManager.LoadStorageProviders(IDictionary`2 configs)
   en Orleans.Runtime.Scheduler.SchedulerExtensions.<>c__DisplayClassa.<<QueueTask>b__8>d__c.MoveNext()
[2016-01-08 14:47:58.070 GMT    10  ERROR   100105  OrleansSiloHost 127.0.0.1:11111]    !!!!!!!!!! ERROR starting Orleans silo name=DCLOEORTEGA Exception=
Exc level 0: System.SystemException: Failed to start Orleans silo 'DCLOEORTEGA' as a Primary node.
   en SiloHost1.OrleansHostWrapper.Run() en C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\OrleansHostWrapper.cs:línea 66 
Exc level 0: System.SystemException: Failed to start Orleans silo 'DCLOEORTEGA' as a Primary node.
   en SiloHost1.OrleansHostWrapper.Run() en C:\Users\byrmanager\Documents\Visual Studio 2015\Projects\TFG\SiloHost1\OrleansHostWrapper.cs:línea 66
elmortega commented 8 years ago
<?xml version="1.0" encoding="utf-8"?>
<OrleansConfiguration xmlns="urn:orleans">
  <Globals>
    <StorageProviders>
      <!--<Provider Type="Orleans.Storage.MemoryStorage" Name="MemoryStore" />-->
      <!-- To use Azure storage, uncomment one of the following lines: -->
      <Provider Type="Orleans.Storage.AzureTableStorage" Name="AzureStore" DataConnectionString="UseDevelopmentStorage=true" />
      <!--<Provider Type="Orleans.Storage.AzureTableStorage" Name="AzureStore" DataConnectionString="DefaultEndpointsProtocol=https;AccountName=MYACCOUNTNAME;AccountKey=MYACCOUNTKEY" />-->
    </StorageProviders>
    <SeedNode Address="localhost" Port="11111" />
  </Globals>
  <Defaults>
    <Networking Address="localhost" Port="11111" />
    <ProxyingGateway Address="localhost" Port="30000" />
    <Tracing DefaultTraceLevel="Info" TraceToConsole="true" TraceToFile="{0}-{1}.log">
      <TraceLevelOverride LogPrefix="Application" TraceLevel="Info" />
    </Tracing>
    <Statistics MetricsTableWriteInterval="30s" PerfCounterWriteInterval="30s" LogWriteInterval="300s" WriteLogStatisticsToTable="true"/>
  </Defaults>
  <Override Node="Primary">
    <Networking Address="localhost" Port="11111" />
    <ProxyingGateway Address="localhost" Port="30000" />
  </Override>
</OrleansConfiguration>
sergeybykov commented 8 years ago

An assembly dependency [Microsoft.WindowsAzure.Storage, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, No se puede cargar el archivo o ensamblado 'Microsoft.WindowsAzure.Storage, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ni una de sus dependencias. La definición del manifiesto del ensamblado no coincide con la referencia al ensamblado. (Excepción de HRESULT: 0x80131040)] could not be loaded: 0

I suspect this is the reason.

elmortega commented 8 years ago

Yes, the Microsoft Orleans Azure Utilities nuget package has a reference to WindowsAzure.Storage assembly. I just upgraded the dependency to version 5.0.2 and now the silo works just fine. Thanks.

sergeybykov commented 8 years ago

I think the important step their is to make sure assembly binding redirects are set correctly in app.config. With that it should work with any 5.0+ version of the Azure Storage library.

elmortega commented 8 years ago

the app.config already had this redirection but I had a Azure Storage library version previous to 5.0