About once a day, I am receiving the following error in our mission-critical trading service.
Source: .NET Runtime, Type: Error, Application: Application.exe, Framework Version: v4.0.30319, Description: The process was terminated due to an internal error in the .NET Runtime at IP 000006447F281DBD (000006447F100000) with exit code 80131506.
After receiving this error and trying to restart the application, it appears that the sockets we were bound to have not been cleaned up from the previous (failed) execution because we receive a System.ServiceModel.AddressAlreadyInUseException when trying to Bind the socket during startup.
I have two questions around this. 1) We need to understand why the first error is occuring, do you have any information from the error codes, etc. 2) We need a way to be able to Bind successfully after the error has occured. Any suggestions on how to cleanup the ports during the next startup.
The environment the application is running under is Microsoft Windows Server 2003 R2, Standard x64 Edition, Service Pack 2, 2x 4Core Intel CPU X5365 @ 3.00GHz, 16.0 GB of RAM.