14:12:18.3398 | Debug | Executing query '' on index 'dynamic/PeriodStates' in 'http://SERVERNAME(DB: DATABASENAME);DATABASENAME' | QueryOperation
14:12:18.3711 | Error | System.TypeInitializationException: The type initializer for 'Raven.Abstractions.Extensions.JsonExtensions' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'raven.metrics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593' or one of its dependencies. The system cannot find the file specified. at Raven.Abstractions.Extensions.JsonExtensions..cctor() --- End of inner exception stack trace --- at Raven.Abstractions.Extensions.JsonExtensions.JsonDeserialization[T](RavenJToken self) at Raven.Client.Connection.SerializationHelper.ToQueryResult(RavenJObject json, Etag etag, String tempRequestTime, Int64 numberOfCharactersRead) in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\Connection\SerializationHelper.cs:line 136 at Raven.Client.Connection.Async.AsyncServerClient.<QueryAsyncAsGet>d__1dc.MoveNext() in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\Connection\Async\AsyncServerClient.cs:line 1373--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Client.Connection.ReplicationInformerBase`1.<TryOperationAsync>d__29`1.MoveNext() in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\Connection\ReplicationInformerBase.cs:line 439--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Raven.Client.Connection.ReplicationInformerBase`1.<ExecuteWithReplicationAsync>d__19`1.MoveNext() in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\Connection\ReplicationInformerBase.cs:line 334--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Client.Connection.Async.AsyncServerClient.<ExecuteWithReplication>d__2ce`1.MoveNext() in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\Connection\Async\AsyncServerClient.cs:line 0--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Client.Document.AbstractDocumentQuery`2.<ExecuteActualQueryAsync>d__29.MoveNext() in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\Document\AbstractDocumentQuery.cs:line 1872--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Client.Document.AbstractDocumentQuery`2.<InitAsync>d__a.MoveNext() in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\Document\AbstractDocumentQuery.cs:line 796--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Raven.Client.Document.AbstractDocumentQuery`2.<ToListAsync>d__48.MoveNext() in c:\Builds\RavenDB-Stable-3.0\Raven.Client.Lightweight\Document\AbstractDocumentQuery.cs:line 2309--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at <NAMESPACE>.GetPeriodsHandler.<HandleRequest>d__2.MoveNext() in C:\Jenkins-Jobs\...\GetPeriodsHandler.cs:line 21
session.Query<PeriodState>().ToListAsync();
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
My extremely limited powershell skills prevented me from catching the actual exception here, so in order to see what the exception is, use postman or a browser (without restarting the app pool) and hit the same uri:
This will be thrown every request until you recycle the application pool again...
I didn't really know that our Application Pools were set to "Enable 32-bit applications" but when I looked at what our version of Octopus Deploy (2.5.something) defaults in the process step "Create IIS Application Pool" it, sure enough, has ticked the box "Enable 32-bit applications"...
3.0.30115: Works! (this is the version we've been using for quite some time, hence we've never seen this before)3.0.30143: Works!3.0.30152: Works!3.0.30153: "Could not load file or assembly 'metrics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ca6c6ef570198eba' or one of its dependencies. The system cannot find the file specified."3.0.30154: "Could not load file or assembly 'metrics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ca6c6ef570198eba' or one of its dependencies. The system cannot find the file specified."3.0.30155: "Could not load file or assembly 'metrics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ca6c6ef570198eba' or one of its dependencies. The system cannot find the file specified."3.0.30165: "Could not load file or assembly 'raven.metrics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593' or one of its dependencies. The system cannot find the file specified."3.0.30171: "Could not load file or assembly 'raven.metrics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593' or one of its dependencies. The system cannot find the file specified.",
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
7508 06:26:41 ERROR Application error.
Exception: System.Web.HttpUnhandledException
Message: An unhandled exception occurred.
[snip]
Nested Exception
Exception: System.TypeInitializationException
Message: The type initializer for 'Raven.Abstractions.Extensions.JsonExtensions' threw an exception.
Source: Raven.Abstractions
at Raven.Abstractions.Extensions.JsonExtensions.JsonDeserialization[T](RavenJToken self)
at Raven.Client.Connection.SerializationHelper.ToQueryResult(RavenJObject json, Etag etag, String tempRequestTime, Int64 numberOfCharactersRead)
at Raven.Client.Document.Batches.LazyQueryOperation`1.HandleResponse(GetResponse response)
at Raven.Client.Document.DocumentSession.ExecuteLazyOperationsSingleStep(ResponseTimeInformation responseTimeInformation)
at Raven.Client.Document.DocumentSession.ExecuteAllPendingLazyOperations()
[snip]
Nested Exception
Exception: System.IO.FileNotFoundException
Message: Could not load file or assembly 'raven.metrics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=37f41c7f99471593' or one of its dependencies. The system cannot find the file specified.
Source: Raven.Abstractions
at Raven.Abstractions.Extensions.JsonExtensions..cctor()
2017-07-06 06:25:10.7591|ERROR|Raven.Client.Document.DocumentConvention|Could not contact master for new replication information
2017-07-06 06:25:10.7591|ERROR|Raven.Client.Document.DocumentConvention|Failed to refresh replication information
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.