Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

System.OutOfMemoryException was thrown

$
0
0

I try to use HttpWebRequest to upload local files to server, but it failed with System.OutOfMemoryException,  could you help me figure out what's happened?

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.String.ToCharArray()
   at System.Text.Encoding.GetBytes(String s)
   at System.Net.HostHeaderString.Convert()
   at System.Net.HttpWebRequest.UpdateHeaders()
   at System.Net.HttpWebRequest.SubmitRequest(ServicePoint servicePoint)
   at System.Net.HttpWebRequest.BeginGetRequestStream(AsyncCallback callback, Object state)
   at Niisten.Analytics.TransferChannel.AnalyticsHttpTransfer.†††
††††“™(Object , Object , Object )
   at Niisten.Analytics.TransferChannel.AnalyticsHttpTransfer.UploadFile(String[] files)
   at Niisten.Analytics.TransferChannel.AnalyticsTransfer.†††
††††“Œ(Object , Object )
   at Niisten.Analytics.TransferChannel.AnalyticsTransfer.StartUploadingAllSqmData(Uri uri)
   at Niisten.Analytics.AnalyticsWriterImpl.†††
††††ž(Object , Object )
   at Niisten.Analytics.AnalyticsWriterImpl.StartUploadingAllSqmData(SqmUploadCallback callback)


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>