• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C# app works on my pc but not on others

NuclearNed

Raconteur
I have a small app I have written in C#. The application files include the executable and two dlls. I have also created a setup project; the setup project is saying that .NET Framework (version 2.0.50727) is a detected dependency.

The app works fine on my pc; if I install it on anybody else's, the app has an initialization error upon startup. I have ensured that the correct version of the .NET Framework is properly installed on the target pc, but the problem persists. The setup project seems to be doing its job in that it is placing the executable and two dlls in the correct folder.

Any ideas?

EDIT:
An unhandled exception ('System.IO.FileNotFoundException') occurred in CrystalViewer.exe[4540].

Another clue - when I tried to debug through VS2005, I get the following:
Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
 
Can you post the stacktrace of the exception that occurs on startup? This will provide a better error message.

Check the references of your project and make sure they are all framework dlls or included in the setup project.
Is this a network folder where the files are copied? If so, .Net security will stop the app from running and give you errors.
 
You have to include the CR license information / key as a resource.

There is a specific "help" topic that describes everything you need to do. I'm not near my VS machine, but basically, you have to include the CR stuff as a resource, and you have to set an attribute / property to the CR license number displayed in the "help | about" screen.

.... or crate a text file with the license info and include it as a resource ... something like that (it sucks to get old ... memory failure ..)

That's as good as I can give you until I get to my programming machine


Here's a link from Microsoft on CR deployment ...
http://msdn2.microsoft.com/en-...y/ms225227(VS.80).aspx


Sorry

Good Luck
Scott
 
Originally posted by: ScottMac
You have to include the CR license information / key as a resource.

There is a specific "help" topic that describes everything you need to do. I'm not near my VS machine, but basically, you have to include the CR stuff as a resource, and you have to set an attribute / property to the CR license number displayed in the "help | about" screen.

.... or crate a text file with the license info and include it as a resource ... something like that (it sucks to get old ... memory failure ..)

That's as good as I can give you until I get to my programming machine


Here's a link from Microsoft on CR deployment ...
http://msdn2.microsoft.com/en-...y/ms225227(VS.80).aspx


Sorry

Good Luck
Scott

I think you are correct. I knew I had this exact problem several years ago, and I'm pretty sure what you posted was the solution.

Thanks
 
Back
Top