WPF application crashes when I launch

后端 未结 1 1296
广开言路
广开言路 2020-12-12 03:10

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 framew

相关标签:
1条回答
  • 2020-12-12 04:15

    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

    • Checking Error Codes - several tools and approaches

    Here are some resources:

    • Launch Debugging Ideas List: Windows Application Startup Error Exception code: 0xe0434352 (older version, similar to the one linked to above).
    • Dependency Scanners: Various tools to debug dependency issues (many different tools can help launch debugging, here are some of the most common ones).
    • Permissions & Runtimes: WiX Toolset PermissionEx Problem - App Does Not Run After Installation (top part of answer only).
    0 讨论(0)
提交回复
热议问题