Environment
Situation
This article discusses an issue which may occur when trying to sync a remote Recon collector site (Running on Windows 2003 SP1) to a master Recon Server. You may receive the following error message during the snapshot import process.
"Cannot import snapshotThe remote server returned an error: (500) Internal Server Error."
On the collector machine the export job will complete however when attempting to transfer the exported .prs file the web service will fail with an unhandled exception. In addition to the unhandled exception an event (listed below) will be logged in the application event log.
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 3/27/2008 12:20:22 PM 
Event time (UTC): 3/27/2008 8:20:22 PM 
Event ID: 4cb91433ca2342228a36d2a54155c113 
Event sequence: 14 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/Root/PlateSpin_32/PowerRecon_32/Connect-11-128510376044944253 
    Trust level: Full 
    Application Virtual Path: /PlateSpin_32/PowerRecon_32/Connect 
    Application Path: C:\Program Files\PlateSpin PowerRecon 3.2 Server\PlateSpin\PowerRecon\Connect\ 
    Machine name: COMP86 
 
Process information: 
    Process ID: 3824 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\SYSTEM 
 
Exception information: 
    Exception type: ArgumentOutOfRangeException 
    Exception message: The size parameter must be between zero and the maximum Int32 value.
Parameter name: size
Actual value was 4159987665. 
 
Request information: 
    Request URL:  http://10.99.125.62/PlateSpin_32/PowerRecon_32/Connect/GetSnapshot.ashx?Id=e232f581-4621-4327-a0d2-bc2f40bba8c4  
    Request path: /PlateSpin_32/PowerRecon_32/Connect/GetSnapshot.ashx 
    User host address: 10.99.123.25 
    User: COMP86\Administrator 
    Is authenticated: True 
    Authentication Type: Negotiate 
    Thread account name: NT AUTHORITY\SYSTEM 
 
Thread information: 
    Thread ID: 6 
    Thread account name: NT AUTHORITY\SYSTEM 
    Is impersonating: True 
    Stack trace:    at System.Web.HttpFileResponseElement..ctor(String filename, Int64 offset, Int64 size, Boolean isImpersonating, Boolean useTransmitFile)
  at System.Web.HttpWriter.TransmitFile(String filename, Int64 size, Boolean isImpersonating)
  at System.Web.HttpResponse.TransmitFile(String filename)
  at PlateSpin.Connect.Server.Web.GetSnapshot.ProcessRequest(HttpContext context)
  at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
  at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  
This issue can occur when a large amount of data has been collected at the remote Recon site. As an example you may face this issue of the remote Recon site contains 2500 machines and 3 months worth of data for those machines.
This issue is due to a bug in ASP.NET 2.0 Response.TransmitFile function which is resolved in Service Pack 2 for Windows 2003 Server