Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Unhandled Exception in mscorlib.dll

$
0
0

I at random times get the error: An unhandled exception of type 'System.ExecutionEngineException' occurred in mscorlib.dll. I am trying to decrypt an csv or txt file when this happens. These files could have 20,000 rows in them. Any idea what could cause this? It fails on this code line:

//Print the contents of the decrypted file.
            StreamWriter fsDecrypted = new StreamWriter(sOutputFilename);
           --> Error fsDecrypted.Write(new StreamReader(cryptostreamDecr).ReadToEnd());
            fsDecrypted.Flush();
            fsDecrypted.Close();


Viewing all articles
Browse latest Browse all 23244

Trending Articles



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