Deployment questions

G

genc ymeri

Hi,
I have a application which runs fine in any PC which has installed .Net1.1
framework and VS2003 but do run in any PC which has installed only .Net
framework 1.1.

The error I get is this. Any idea please ?

PS:

---------------------------
WFDesigner.exe - Common Language Runtime Debugging Services
---------------------------

Application has generated an exception that could not be handled.
Process id=0x8ec (2284), Thread id=0x480 (1152).
Click OK to terminate the application.
Click CANCEL to debug the application.
 
E

Eric Weinschenk

your probably not deploying some dependent assembly or other supporting
file.
 
E

Eric Weinschenk

well, if you are just trying to run the compiled executable on the other
machine that probably will cause problems, because vs does not copy all the
required files out of your GAC into the local Debug folder.

Try creating an setup program using vs.net if you havent done so already.
Its very easy to use, and it makes sure that all the dependant files needed
to run your app come down with it.

lastly, make sure you have a try catch around your whole main() ... you
might just find out that there's a bug in your program...
 
G

genc ymeri

Sorry,
I'm a beginner in C# ( not in programming though, a Delphi one) and I'm
doing something in C# for demo. How can I create a set up program for
VS.net (C#).

Thank You very much.
 
E

Eric Weinschenk

1. have the project you want to build a setup for already open is vs.net
2. File > new > project > setup & deployment > setupproject
3. In the solution explorer, right click the setup project and choose Add >
Project output
4. Choose the project, and double click "Primary Output"
5. Right click the project and choose build.
6. open explorer and go to the folder where you created the project
\bin\debug and copy that msi file to a floppy.
7. take it to the other computer, and install.

plus or minus a few things, that's what you gotta do.

beyond that, you need to learn to rtfm. got it?
 
G

genc ymeri

beyond that, you need to learn to rtfm. got it?

ha, ha, ha, ha,

Thanks a lot :) :) :)

PS:
Once the demo runs and sale people agree.... I may get time to rtfm.......
:) :)
 

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