Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have a very complex .NET Windows.Forms Application.
It creates something of tabbed interface in which it hosts (using P/Invoke) multiple instances of another Windows.Forms Application (also created by me), which features a WebBrowser Control (with some other P/Invoke stuff).

It works fine on my computer and can be easily compiled and run on other computers which have Visual Studio installed.

The problem is that it does not work at all if copied on other computers (without Visual Studio). It does not give any error or message, it simply does not start. It does absolutely nothing.

Of course it is not location dependent (it has no hard-coded paths or something).
And, yes, the other computer has .NET Framework installed, duh.

Since it does not do anything, I am unable to further investigate the issue.
So, if you have any ideas what the problem could be, please help me.
Thank you!
Posted
Updated 5-Feb-15 4:30am
v3
Comments
ZurdoDev 5-Feb-15 11:08am    
There must be an error in the event log.

1 solution

Check the version of the .NET framework on the non-working PCs for starters. This may help: A safe way to get the user to check if the .NET framework is installed[^]

Then check the system type / your app type: make sure you aren't trying to run 64bit apps on a 32 bit machine.

Then check that all the DLLs your app uses P/Invoke to access are present, the correct version, and available.

If all of that works, start by creating a trivial app and try that. If it works, add some complexity until you find what is missing - it may be that a DLL that calls a DLL or similar, so just keep going until you find something that doesn't work!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900