We are working VS2010 vb.net multi threaded application with MS SQL 2008 R2 as a database. The application we are testing on Windows 7 (32 Bit) machine which has Framework 4.0 installed.
While testing sometimes (twice a day) we came across 'Application Crash' situation withtwo consecutive logs in Event Viewer > Windows Logs > Application
Earlier we used to faced the similar issue on VS2005 with bit higher frequency ( 5 times a day) . To overcome same we decided to upgrade code to VS2010.
Log 1:
Log Name: Application
Source: .NET Runtime
Date: 8/5/2013 3:26:45 PM
Event ID: 1023
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: OCLAP0084
Description:
Application: <Our application name>.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 72CF8F00 (72BB0000) with exit code 80131506.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1023</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2013-08-05T09:56:45.000000000Z" />
<EventRecordID>2778</EventRecordID>
<Channel>Application</Channel>
<Computer>OCLAP0084</Computer>
<Security />
</System>
<EventData>
<Data>Application: <Our application name>.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 72CF8F00 (72BB0000) with exit code 80131506.
</Data>
</EventData>
</Event>
Log 2:
Log Name: Application
Source: Application Error
Date: 8/5/2013 3:26:46 PM
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: OCLAP0084
Description:
Faulting application name: MiPOS Local POS App.exe, version: 1.0.0.0, time stamp: 0x51fbbeaa
Faulting module name: clr.dll, version: 4.0.30319.2012, time stamp: 0x517a1d31
Exception code: 0xc0000005
Fault offset: 0x00148f00
Faulting process id: 0x38c
Faulting application start time: 0x01ce91c2112a9348
Faulting application path: C:\Program Files\MIDCO\MiPOS\Local POS\MiPOS Local POS App.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report Id: 56a7113a-fdb5-11e2-bb09-74f06dc06d55
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2013-08-05T09:56:46.000000000Z" />
<EventRecordID>2779</EventRecordID>
<Channel>Application</Channel>
<Computer>OCLAP0084</Computer>
<Security />
</System>
<EventData>
<Data>MiPOS Local POS App.exe</Data>
<Data>1.0.0.0</Data>
<Data>51fbbeaa</Data>
<Data>clr.dll</Data>
<Data>4.0.30319.2012</Data>
<Data>517a1d31</Data>
<Data>c0000005</Data>
<Data>00148f00</Data>
<Data>38c</Data>
<Data>01ce91c2112a9348</Data>
<Data>C:\Program Files\MIDCO\MiPOS\Local POS\MiPOS Local POS App.exe</Data>
<Data>C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll</Data>
<Data>56a7113a-fdb5-11e2-bb09-74f06dc06d55</Data>
</EventData>
</Event>
While finding the solution we carried out following activities:
1) we came across the Hotfix at "http://support.microsoft.com/kb/2640103". We installed same on the machine on which we are carrying out the testing. After installing Hotfix also we are facing the problem. We are not yet installed same on the machine on which we are compiling the code. Now we will install sameon the machine on which we are compiling the code and will carry out the testing.
2) disabled concurrent garbage collector using following content of config file
<?xml version="1.0"?>
<configuration>
<runtime>
<gcConcurrent enabled="false"/>
</runtime>
<system.diagnostics>
<sources>
<!-- This section defines the logging configuration for My.Application.Log -->
<source name="DefaultSource" switchName="DefaultSwitch">
<listeners>
<add name="FileLog"/>
<!-- Uncomment the below section to write to the Application Event Log -->
<!--<add name="EventLog"/>-->
</listeners>
</source>
</sources>
<switches>
<add name="DefaultSwitch" value="Information"/>
</switches>
<sharedListeners>
<add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" initializeData="FileLogWriter"/>
<!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log -->
<!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> -->
</sharedListeners>
</system.diagnostics>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
Our Queries :
1 ) do we need to install the hotfix on machine on which we are compiling the code as well as the machine on which we are carrying out the testing?
2) Installing hotfix only on machine on which we are carrying out the testing will create any issue?
3) Which are the other possible resons for which we might face the mentioned problem? How to resolve same?
Thanks in advance.....