binary execution

P

Peter

Hello,

I have a program compiled under windows XP with visual studio 2005.

when I run the binary, I got the error message:
The system cannot execute the specified program.

checked event log and it contains the following information:

Generate Activation Context failed for c:\xx\abc.exe.
Reference error message: The referenced assembly is not installed on
your system.

The machine has visual studio 2005 installed and do I need to install
any additional run time to get it work?

thanks
peter
 
K

Kerem Gümrükcü

Hi Peter,

if its a managed application, use this:

[Assembly Binding Log Viewer (Fuslogvw.exe)]
http://msdn.microsoft.com/en-us/library/e74a18c4.aspx

if its a native aplication, then use this:

[Dependency Walker]
http://www.dependencywalker.com/

For future: Try to avoid exotic libraries and try to
work with standard stuff. And if you are forced to
use any third-party or own libraries, either merge them
into one single library, or make sure your installer
carries and installs them to the target system properly.
Before you execute your application, make sure all
dependencies have been resolved.

I work on a application (in my spare time) that
checks all the bindings and dependencies before
launches any functions by trying to load the libraries
(as datafile only!) or by checking physical existence
and version number, signature/timestamp of the required
files and libraries. If something is missing it unpacks
the resource from its memory or accompanied library
storage. Finally it binds and locks the files from deletion
and starts to run. maybe this is a approach for you,...

Good Luck!

regards

Kerem
 
P

Peter

K

Kerem Gümrükcü

Hi Peter,

did the msjava.dll really solve your problem?
Or is it another on-demand linking library
your problem. Try a "Profiling" from Dependency
Walker to make sure what really is missing,...

Regards

Kerem

--
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Latest Project: http://www.pro-it-education.de/software/deviceremover
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

Peter said:
Kerem said:
Hi Peter,

if its a managed application, use this:

[Assembly Binding Log Viewer (Fuslogvw.exe)]
http://msdn.microsoft.com/en-us/library/e74a18c4.aspx

if its a native aplication, then use this:

[Dependency Walker]
http://www.dependencywalker.com/

thanks. with dependencywalker, it said missing msjava.dll,
I downloaded it from dll-files.com, but it is for 32 bit, do I need to
install full sun java package to get msjava.dll for 64 bit?

thanks.
peter
 
P

Peter

Kerem said:
Hi Peter,

did the msjava.dll really solve your problem?
Or is it another on-demand linking library
your problem. Try a "Profiling" from Dependency
Walker to make sure what really is missing,...

It looks to me that msjava.dll is the issue.
I downloaded msjava.dll for win32 and run in my computer (win64).
it complains that msjava.dll CPU is x86 while others is x64.
Is msjava.dll supposed to be part of OS or I need to download somewhere
seperatelly?

Thanks.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top