Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host.

108 views
Skip to first unread message

reach4thelasers

unread,
Sep 13, 2011, 11:07:47 PM9/13/11
to NoRM mongodb
Why might this happen when updating a MongoDB object from a Thread?
I've seen it a couple of times now.....

--------

Unable to write data to the transport connection: An existing
connection was forcibly closed by the remote host.

at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32
offset, Int32 size)
at Norm.Connection.Write(Byte[] bytes, Int32 start, Int32 size) in
D:\Corellia\Source\trunk\utilities\NoRM\Connections\Connection.cs:line
193
at Norm.Protocol.Messages.UpdateMessage`2.Execute() in D:\Corellia
\Source\trunk\utilities\NoRM\Protocol\Messages\UpdateMessage.cs:line
56
at Norm.Collections.MongoCollection`1.Update[X,U](X matchDocument,
U valueDocument, Boolean updateMultiple, Boolean upsert) in D:\Corellia
\Source\trunk\utilities\NoRM\Collections
\MongoCollectionGeneric.cs:line 161
at Norm.Collections.MongoCollection`1.Save(T entity) in D:\Corellia
\Source\trunk\utilities\NoRM\Collections
\MongoCollectionGeneric.cs:line 119
at Corellia.Data.Repositories.MongoRepository`1.Save(TEntity
instance) in D:\Corellia\Source\trunk\app\Corellia.Data\Repositories
\MongoRepository.cs:line 112
at
Corellia.Managers.LoginLoginRegistrationManager.GrabAndUploadFacebookImage()
in D:\Corellia\Source\trunk\app\Corellia.Managers\Corellia.Managers
\LoginLoginRegistrationManager.cs:line 79
at System.Threading.ExecutionContext.runTryCode(Object userData)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state, Boolean
ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Reply all
Reply to author
Forward
0 new messages