I have a legacy application built with Visual Studio 2019 that won't run standalone.

Russ Kelly 21 Reputation points
2022-05-09T22:45:42.53+00:00

The application is a C# solution linked with C++ projects and I suspect this is a sticky point for publishing the application for standalone execution.

As far as I can tell none of the dependencies are missing, but I see the following errors in the Event Viewer:

Application: MyApplication.exe
Framework version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
at MyApplication.Array_Unit..ctor()
at MyApplication.Testbench..ctor()
at MyApplication.main()

Faulty application name: MyApplication.exe, version: 1.0.0.0, timestamp: 0xddad1087
Faulty module name: KERNELBASE.DLL, version: 10.0.19041.1645, timestamp 0xdfe831e6
Exception code: 0xe0434352
Fault offset: 0x0012b982
Faulting process id: 0x3634
Faulting application start time:
Faulting application path: C:\Users\NIWC\Desktop\Release\MyApplication.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report id: ab49e8ba-3960-41c1-a178-d5614194a7e9
Faulting package full name:
Faulting package-relative application ID:

I believe this implies a missing DLL or some other file dependency that KERNELBASE.dll is trying to load.

Not sure.

I have tried dependency walker tools but they just list all possible DLL dependencies resulting in a monolithic set of paths that are impossible to check.

Any help would be appreciated.

Thanks!

Russ

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,647 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
947 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
971 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,258 questions
{count} votes

Accepted answer
  1. RLWA32 40,851 Reputation points
    2022-05-19T20:56:20.533+00:00

    One way you can end up with this problem is if the C# project reference to the C++ DLL was made by selecting a file using "Browse" instead of selecting the C++ project. If the specific file used to add a reference was a debug version then that is what will be published.


0 additional answers

Sort by: Most helpful