Skip to content

Instantly share code, notes, and snippets.

@phinett
Created October 2, 2012 21:42
Show Gist options
  • Save phinett/3823491 to your computer and use it in GitHub Desktop.
Save phinett/3823491 to your computer and use it in GitHub Desktop.
error
Server Error in '/' Application.
The remote server returned an error: (500) Internal Server Error.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[WebException: The remote server returned an error: (500) Internal Server Error.]
System.Net.HttpWebRequest.GetResponse() +8515936
Raven.Client.Connection.HttpJsonRequest.ReadJsonInternal(Func`1 getResponse) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:292
[InvalidOperationException: Url: "/bulk_docs"
System.ArgumentOutOfRangeException: Unexpected BsonType value: -29
Parameter name: type
at Raven.Imports.Newtonsoft.Json.Bson.BsonReader.ReadType(BsonType type) in c:\Builds\RavenDB-Unstable-v1.2\Imports\Newtonsoft.Json\Src\Newtonsoft.Json\Bson\BsonReader.cs:line 597
at Raven.Imports.Newtonsoft.Json.Bson.BsonReader.ReadNormal() in c:\Builds\RavenDB-Unstable-v1.2\Imports\Newtonsoft.Json\Src\Newtonsoft.Json\Bson\BsonReader.cs:line 424
at Raven.Imports.Newtonsoft.Json.Bson.BsonReader.ReadInternal() in c:\Builds\RavenDB-Unstable-v1.2\Imports\Newtonsoft.Json\Src\Newtonsoft.Json\Bson\BsonReader.cs:line 258
at Raven.Json.Linq.RavenJObject.Load(JsonReader reader) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Abstractions\Json\Linq\RavenJObject.cs:line 227
at Raven.Storage.Esent.StorageActions.DocumentStorageActions.ReadDocumentData(String key, Guid existingEtag, RavenJObject metadata) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Storage\Esent\StorageActions\Documents.cs:line 174
at Raven.Storage.Esent.StorageActions.DocumentStorageActions.<DocumentByKey>b__1(JsonDocumentMetadata metadata, Func`4 createDocument) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Storage\Esent\StorageActions\Documents.cs:line 39
at Raven.Storage.Esent.StorageActions.DocumentStorageActions.DocumentByKeyInternal[T](String key, TransactionInformation transactionInformation, Func`3 createResult) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Storage\Esent\StorageActions\Documents.cs:line 109
at Raven.Storage.Esent.StorageActions.DocumentStorageActions.DocumentByKey(String key, TransactionInformation transactionInformation) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Storage\Esent\StorageActions\Documents.cs:line 36
at Raven.Bundles.Replication.Triggers.PreventConflictDocumentsPutTrigger.<>c__DisplayClass1.<AllowPut>b__0(IStorageActionsAccessor accessor) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Bundles\Replication\Triggers\PreventConflictDocumentsPutTrigger.cs:line 29
at Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Storage\Esent\TransactionalStorage.cs:line 422
at Raven.Bundles.Replication.Triggers.PreventConflictDocumentsPutTrigger.AllowPut(String key, RavenJObject document, RavenJObject metadata, TransactionInformation transactionInformation) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Bundles\Replication\Triggers\PreventConflictDocumentsPutTrigger.cs:line 31
at Raven.Database.DocumentDatabase.<>c__DisplayClass42.<AssertPutOperationNotVetoed>b__3f(AbstractPutTrigger trigger) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\DocumentDatabase.cs:line 613
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Raven.Database.DocumentDatabase.AssertPutOperationNotVetoed(String key, RavenJObject metadata, RavenJObject document, TransactionInformation transactionInformation) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\DocumentDatabase.cs:line 612
at Raven.Database.DocumentDatabase.<>c__DisplayClass3a.<Put>b__33(IStorageActionsAccessor actions) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\DocumentDatabase.cs:line 563
at Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Storage\Esent\TransactionalStorage.cs:line 422
at Raven.Database.DocumentDatabase.Put(String key, Nullable`1 etag, RavenJObject document, RavenJObject metadata, TransactionInformation transactionInformation) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\DocumentDatabase.cs:line 556
at Raven.Database.Extensions.CommandExtensions.Execute(ICommandData self, DocumentDatabase database) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Extensions\CommandExtensions.cs:line 25
at Raven.Database.DocumentDatabase.<>c__DisplayClasse1.<Batch>b__dd(IStorageActionsAccessor actions) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\DocumentDatabase.cs:line 1409
at Raven.Storage.Esent.TransactionalStorage.ExecuteBatch(Action`1 action) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Storage\Esent\TransactionalStorage.cs:line 471
at Raven.Storage.Esent.TransactionalStorage.Batch(Action`1 action) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Storage\Esent\TransactionalStorage.cs:line 429
at Raven.Database.DocumentDatabase.Batch(IEnumerable`1 commands) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\DocumentDatabase.cs:line 1404
at Raven.Database.Server.Responders.DocumentBatch.Batch(IHttpContext context) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Server\Responders\DocumentBatch.cs:line 101
at Raven.Database.Server.HttpServer.DispatchRequest(IHttpContext ctx) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Server\HttpServer.cs:line 730
at Raven.Database.Server.HttpServer.HandleActualRequest(IHttpContext ctx) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Database\Server\HttpServer.cs:line 491
]
Raven.Client.Connection.HttpJsonRequest.HandleErrors(WebException e) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:434
Raven.Client.Connection.HttpJsonRequest.ReadJsonInternal(Func`1 getResponse) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:298
Raven.Client.Connection.HttpJsonRequest.ReadResponseJson() in c:\Builds\RavenDB-Unstable-v1.2\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:205
Raven.Client.Connection.ServerClient.DirectBatch(IEnumerable`1 commandDatas, String operationUrl) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Client.Lightweight\Connection\ServerClient.cs:900
Raven.Client.Connection.ReplicationInformer.TryOperation(Func`2 operation, String operationUrl, Boolean avoidThrowing, T& result) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Client.Lightweight\Connection\ReplicationInformer.cs:574
Raven.Client.Connection.ReplicationInformer.ExecuteWithReplication(String method, String primaryUrl, Int32 currentRequest, Int32 currentReadStripingBase, Func`2 operation) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Client.Lightweight\Connection\ReplicationInformer.cs:533
Raven.Client.Connection.ServerClient.ExecuteWithReplication(String method, Func`2 operation) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Client.Lightweight\Connection\ServerClient.cs:173
Raven.Client.Document.DocumentSession.SaveChanges() in c:\Builds\RavenDB-Unstable-v1.2\Raven.Client.Lightweight\Document\DocumentSession.cs:466
HM.MvcApplication.InitializeTenantDatabases() in c:\dev\hmraven\HM\Global.asax.cs:219
HM.FirstRequestInitialisation.Initialise(HttpContext context) in c:\dev\hmraven\HM\Global.asax.cs:96
HM.MvcApplication.Application_BeginRequest(Object sender, EventArgs e) in c:\dev\hmraven\HM\Global.asax.cs:51
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17626
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment