[program name] .exe stops working

I have a .NET application that was created on the 2.0 platform.

  • I created an installer for it and try to run it on a machine with 3.5.
  • All relevant environments are in Windows 7
  • The application works fine in VS debugging mode on my development machine, which also has Framework 3.5.
  • The installer works fine both on my development machine and on the user's machine
  • After installation, starting the program immediately leads to "[program name] .exe stops working" without additional information
  • I asked the user to install Framework 2.0, but was blocked "you must use the function enable / disable dialog"
  • I looked at a few other things, such as DEP, setting the assembly to compatibility mode with Windows 7, etc.
  • I do not think that there is any specific error in the application, because it has a splash screen that simply displays a jpeg image before doing anything else, and even that does not appear; it seems like this should be a common compatibility issue.

I have no idea what to do next. I hope someone can at least offer me a way to get additional error information when running .exe so that I can identify the problem.

Thanks in advance.

Mike

EDIT 1

Here is the error I found in the event log:

Log Name: Application Source: Application Error Date: 10/10/2013 1:42:49 PM Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic User: N/A Computer: [my development machine] Description: Faulting application name: BARTJr.exe, version: 1.0.0.1, time stamp: 0x5256e6de Faulting module name: KERNELBASE.dll, version: 6.1.7601.18229, time stamp: 0x51fb1677 Exception code: 0xe0434f4d Fault offset: 0x000000000000940d Faulting process id: 0x%9 Faulting application start time: 0x%10 Faulting application path: %11 Faulting module path: %12 Report Id: %13 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-10-10T17:42:49.000000000Z" /> <EventRecordID>19455</EventRecordID> <Channel>Application</Channel> <Computer>mcaputow7.ezesoft.net</Computer> <Security /> </System> <EventData> <Data>BARTJr.exe</Data> <Data>1.0.0.1</Data> <Data>5256e6de</Data> <Data>KERNELBASE.dll</Data> <Data>6.1.7601.18229</Data> <Data>51fb1677</Data> <Data>e0434f4d</Data> <Data>000000000000940d</Data> </EventData> </Event> 

EDIT 2

The error refers to a temporary file with additional information. Here is the contents of this file:

 <?xml version="1.0" encoding="UTF-16"?> <WERReportMetadata> <OSVersionInformation> <WindowsNTVersion>6.1</WindowsNTVersion> <Build>7601 Service Pack 1</Build> <Product>(0x1): Windows 7 Ultimate</Product> <Edition>Ultimate</Edition> <BuildString>7601.18113.amd64fre.win7sp1_gdr.130318-1533</BuildString> <Revision>1130</Revision> <Flavor>Multiprocessor Free</Flavor> <Architecture>X64</Architecture> <LCID>1033</LCID> </OSVersionInformation> <ProblemSignatures> <EventType>CLR20r3</EventType> <Parameter0>ssms.exe</Parameter0> <Parameter1>2011.110.2100.60</Parameter1> <Parameter2>4f35e2d9</Parameter2> <Parameter3>System.Management</Parameter3> <Parameter4>4.0.0.0</Parameter4> <Parameter5>4ba1e140</Parameter5> <Parameter6>d0</Parameter6> <Parameter7>1c</Parameter7> <Parameter8>RXOEJIH3RSKJEZ4XXWPXUDKCPPWJODNG</Parameter8> </ProblemSignatures> <DynamicSignatures> <Parameter1>6.1.7601.2.1.0.256.1</Parameter1> <Parameter2>1033</Parameter2> <Parameter22>0a9e</Parameter22> <Parameter23>0a9e372d3b4ad19135b953a78882e789</Parameter23> <Parameter24>0a9e</Parameter24> <Parameter25>0a9e372d3b4ad19135b953a78882e789</Parameter25> </DynamicSignatures> <SystemInformation> <MID>BAB83330-1394-44F8-8298-044776CE31CB</MID> <SystemManufacturer>Microsoft Corporation</SystemManufacturer> <SystemProductName>Virtual Machine</SystemProductName> <BIOSVersion>090004</BIOSVersion> </SystemInformation> </WERReportMetadata> 
+7
compatibility deployment
source share
4 answers

It is allowed. In the end, I decided to try "Run as administrator", which allowed me to see the actual error that occurred. There is no point in having administrator privileges to get a dialog with an unhandled .NET exception, but it does.

+3
source share

I have experience many times before, and every time there is no assembly (DLL) on my target computer that my application references. When the application refers to the assembly that is needed immediately, for example, it may appear before the launch form (for the Win forms project), after which it will crash.

In any case, I do not promise your answer, but there is something to see.

0
source share

Put the code below at your entry point (Main) first. This may throw an exception before crashing.

 AppDomain.CurrentDomain.UnhandledException += (sender,e)=>{ if(e.IsTerminating) { //TODO: write your log } }; 
0
source share

I came to this problem just now, and I found that this led to the loss of some DLL that led to this problem. I am forced to stop updating the application, and I think this may be the cause of the loss.

0
source share

All Articles