.Net Framework 4 app does not run on XP unless VS2010 installed

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
This is almost certainly a missing file.
I am developing a .NET Framework 4 app on Windows 7 Pro (64 bit). The app is targeted to x86 because there are a couple of C++ DLLs.
Before attempting to run the app on XP, I installed the .NET 4 framework, by executing: dotNetFx40_Full_x86_x64.exe. It appeared to install successfully. I did try in one case running my app without first installing the framework and got the expected
error message that I needed to install .NET 4.
When I tried to run the app on the Virtual XP machine (using MSoft XP mode, .NET Franework 4 installed) it immediately raised an unhandled exception. The main window did not display. The same thing happened when I dual-booted back to XP (I have
two hard drives, one has XP - that I seldom use - I can dual boot via changing the boot drive in the BIOS). The error report contained no useful info, except that something indicated "File not found" but no clue what file it was looking for.
I then installed VS2010 on my virtual XP machine, and the program worked! I invoked the program directly, not using the VS2010 debugger. In fact I had never started VS2010 on the virtual machine.
The third party C++ DLLs do not call any strange DLLs. In any event, my experience in the past with C++ DLLs is that if they are missing you get a meaningful error message, not a crash. A static constructor does call a 3rd party C++ DLL that
in turn calls KERNEL32.DLL and USER32.DLL, as well as its own ZLIB.DLL which calls MSVCRT.DLL and KERNEL32.DLL.
I suspect strongly that I need to distribute another file, but dont know where to begin to determine what that file is.
Thanks in advance,
Michael Bate




View the full article
 

Similar threads

D
Replies
0
Views
769
DexterCamarillo
D
B
Replies
0
Views
372
Blue Baron
B
S
Replies
0
Views
72
Sandeep Ghadmode
S
Back
Top