Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
680 views
in Technique[技术] by (71.8m points)

windows installer - WPF application crashes when I launch

I used 'Microsoft Visual Studio Installer' to create a MSI for a legacy c# WPF application.

After I install, I see this error BELOW. Do I have the wrong net framework installed ?

Faulting application name: MyDesktop.UI.exe, version: 1.20.7097.18607, time stamp: 0x5cfa9cce Faulting module name: clr.dll, version: 4.7.3416.0, time stamp: 0x5cabfd2c Exception code: 0xc0000005 Fault offset: 0x0045510d Faulting process id: 0x93c Faulting application start time: 0x01d51d5595e74050 Faulting application path: C:Program Files (x86)ASDMicrosoft.Support.UnifiedDesktop.UI.exe Faulting module path: C:WindowsMicrosoft.NETFrameworkv4.0.30319clr.dll Report Id: b26b4f9f-2e97-434b-b605-fa95ba4974ac Faulting package full name: Faulting package-relative application ID:

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Source Code?: I assume you don't have the source code and can't 1) just step-through the launch sequence or 2) attach to debug binaries deployed to final installation location? Just checking.

No Source Code: Without source available, I usually use 3) ProcMon.exe to monitor launch problems (quick sample - and Hanselman has a video on ProcMon.exe) and 4) I enable any available logging and / or application.exe debug modes. 5) Sometimes I assemble all files in a folder on the desktop and try to run from there (generally no permission or access denied problems).

Common Problems: Very often problems relate to lacking permission or missing runtimes (for example: .Net, Java, VC++ Runtime, etc...) and the usual configuration errors found in config files (ini, xml) and the registry (wrong paths, URLs, settings, etc...) - obvious, just mentioning.

"Ideas List": Here is a long "ideas list" of potential culprit causes: Launch Debugging - "torpedos full spread". Please do check this one. Links to older versions of the list can be found below.


Error Code: Looking up the error code ("The Magic Number Database") it seems to be an access violation: https://www.magnumdb.com/search?q=0xc0000005


Here are some resources:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...