When using the Exchange Utility to unstub messages. Not all are Unstubbed.
Checking the Exchange Utility.log for errors shows
009-09-21 10:45:19,020 [1] TRACE AfterMail.Log.MAPI.Recovery - Processing Inbox\\RE: Quest Rule
Downloading file image001.jpg, size 3025
2009-09-21 10:45:19,020 [1] TRACE AfterMail.Log.MAPI.Recovery - Archive Manager Exchange Utility, Time = 00:03:08, Items = 1228, Pr. sec. = 6.52, Pr. min. = 391.26
2009-09-21 10:45:19,020 [6] ERROR AfterMail.Log.MAPI.Recovery - Error in Message unstub undo Error: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. --->
System.IO.IOException: Unable to read data from the transport
connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset,
Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset,
Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset,
Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32
size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at
AfterMail.Exchange.MAPIV2.Stubbing.StubbedMessage.DownLoadAttachment(Att
achment webAtt)
at
AfterMail.Exchange.MAPIV2.Stubbing.StubbedMessage.UndoAttachments(Messag
e webMessage, Boolean noCache, Boolean noSetupDialog)
at AfterMail.Exchange.MAPIV2.Stubbing.StubbedMessage.Undo(Boolean
noCache, Boolean noSetupDialog)
There are not enough Dynamic Ports available to use as either
1, The Ports are taking too long to close
2, There are not enough Ports.
Workaround
To fix the issue, increase the number of ports and decrease the time they remain open for.
Changing the Dynamic Port Range
1.Open regedit.
2.Open key HKLM\System\CurrentControlSet\Services\Tcpip\Parameters
3.Edit (or create as DWORD) the MaxUserPort value.
4.Set it to a higher number. (i.e. decimal 65534)
Changing the TIME_WAIT delay
1.Open regedit.
2.Open key HKLM\System\CurrentControlSet\Services\Tcpip\Parameters
3.Edit (or create as DWORD) the TCPTimedWaitDelay.
4.Set it to a lower number. Value is in seconds. (i.e. decimal 30)
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center