System.Net.WebException (Build2879)

382 views
Skip to first unread message

TJIMH

unread,
Aug 27, 2014, 12:11:12 PM8/27/14
to rav...@googlegroups.com
seeing a fair number of the client side exceptions shown below. what might this be indicative of:

System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- 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 Raven.Client.Connection.HttpJsonRequest.<ServerPullAsync>d__41.MoveNext() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:line 830
--- 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 Raven.Client.Changes.RemoteDatabaseChanges.<EstablishConnection>d__3.MoveNext() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Changes\RemoteDatabaseChanges.cs:line 114
   --- End of inner exception stack trace ---
---> (Inner Exception #0) System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- 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 Raven.Client.Connection.HttpJsonRequest.<ServerPullAsync>d__41.MoveNext() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:line 830
--- 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 Raven.Client.Changes.RemoteDatabaseChanges.<EstablishConnection>d__3.MoveNext() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Changes\RemoteDatabaseChanges.cs:line 114<---

Oren Eini (Ayende Rahien)

unread,
Aug 27, 2014, 12:14:44 PM8/27/14
to ravendb

What is the actual error

--
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+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Chris Marisic

unread,
Aug 27, 2014, 12:35:33 PM8/27/14
to rav...@googlegroups.com
no, the actual error the server is returning:  The remote server returned an error: (500) Internal Server Error.


On Wednesday, August 27, 2014 12:18:07 PM UTC-4, TJIMH wrote:
System.AggregateException: One or more errors occurred.

TJIMH

unread,
Aug 27, 2014, 12:54:39 PM8/27/14
to rav...@googlegroups.com
Not sure I know how to find the actual error? That is what is being logged when the app crashes??


On Wednesday, August 27, 2014 12:14:44 PM UTC-4, Oren Eini wrote:

Oren Eini (Ayende Rahien)

unread,
Aug 27, 2014, 3:10:41 PM8/27/14
to ravendb
Can you find the fiddler trace?



Oren Eini

CEO


Mobile: + 972-52-548-6969

Office:  + 972-4-622-7811

Fax:      + 972-153-4622-7811



Chris Marisic

unread,
Aug 27, 2014, 4:16:58 PM8/27/14
to rav...@googlegroups.com
Check the event viewer on the server that is running ravendb.

TJIMH

unread,
Aug 27, 2014, 4:43:33 PM8/27/14
to rav...@googlegroups.com
What I see in the event log at the time of the error is an initial TaskCanceledException - A task was canceled

Then their are Information events indicating from ESENT saying the database engine stopped the instance.

Then there are a couple of errors:

An unhandled exception occurred and the process was terminated. Application ID: /LM/W3SVC/8/ROOT Process ID: 6516 Exception: System.NullReferenceException Message: Object reference not set to an instance of an object. StackTrace: Server stack trace: at System.Web.ThreadContext.AssociateWithCurrentThread(Boolean setImpersonationContext) at System.Web.HttpApplication.OnThreadEnterPrivate(Boolean setImpersonationContext) at System.Web.LegacyAspNetSynchronizationContext.CallCallbackPossiblyUnderLock(SendOrPostCallback callback, Object state) at System.Web.LegacyAspNetSynchronizationContext.CallCallback(SendOrPostCallback callback, Object state) at System.Web.LegacyAspNetSynchronizationContext.Post(SendOrPostCallback callback, Object state) at System.Runtime.CompilerServices.TaskAwaiter.<>c__DisplayClassa.<OnCompletedInternal>b__0(Task param0) Exception rethrown at [0]: at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__1(Object state) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) 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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()



Application: w3wp.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.NullReferenceException Stack: Server stack trace: at System.Web.ThreadContext.AssociateWithCurrentThread(Boolean setImpersonationContext) at System.Web.HttpApplication.OnThreadEnterPrivate(Boolean setImpersonationContext) at System.Web.LegacyAspNetSynchronizationContext.CallCallbackPossiblyUnderLock(SendOrPostCallback callback, Object state) at System.Web.LegacyAspNetSynchronizationContext.CallCallback(SendOrPostCallback callback, Object state) at System.Web.LegacyAspNetSynchronizationContext.Post(SendOrPostCallback callback, Object state) at System.Runtime.CompilerServices.TaskAwaiter.<>c__DisplayClassa.<OnCompletedInternal>b__0(Task param0) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__1(System.Object) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 

Oren Eini (Ayende Rahien)

unread,
Aug 28, 2014, 2:01:54 AM8/28/14
to ravendb
Try disabling the LegacyAspNetSynchronizationContext



Oren Eini

CEO


Mobile: + 972-52-548-6969

Office:  + 972-4-622-7811

Fax:      + 972-153-4622-7811





Reply all
Reply to author
Forward
0 new messages