I have created a wonderful windows application with visual C# express, this is quite a feat since I new nothing of programming before I started. Thanks to lots of help from articles and forum entries. Thank you.
My issue is I can "click once publish" and install on my production machince xppro and when I try to install on another machine xphome, I simply get the application has encountered a problem and wants to send an error report to microsoft. Any thoughts on how to get more information
I am using MSAccess database, directx and interlop to word all installed on the other machine also. hmmmm.
help

deployment error
Peter N
If you ask me... don't bother publishing it at all... All you have to do is open your project in Visual C# Express 2005, then click F5. When your application opens up... close it and then close Visual C# Express 2005. Now locate where your solution file is and open up the folder next to it (it should have the same name as the solution). Then go to the 'bin' folder, then 'Debug' folder... there you will find your application along with a few other files (you only need your application file). Copy this file and put it on any other PC with the .net framework v 2.0. You don't even have to install your app!
But if you do want to install it (or the above way dosn't work for some reason)... I can't help you because I haven't the faintest clue!
Flopik
Can you post the entire error message and also what version of Access you are using (Same version on both machines )
Michael Blome - Visual C# Documentation Team
epepping
adepumadhu
Leo Juszkiewicz
Ed Lorenz
catch
(System.Exception ex){System.Windows.Forms.
MessageBox.Show(ex.Message);}stephensells
vmanzu_1977
I added a try{}catch{} around the application start (progam.cs) and found that a component was not registered correctly so I was able to solve my problem.
///// from progam.cs or whatever your named file is containing Main()
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmProject());
}
catch (Exception e)
{
MessageBox.Show(e.Message, "Error");
}
Manas Tripathi
Thank you for your responses.
Framework 2.0 is installed. I also tried the other suggestion of the application file. I tried to run it with the same result.
Tiago Dias