deployment error

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



Answer this question

deployment error

  • Taylorrod

    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


  • JonnoQ

    That is the entire error message I recieve after the install process and before the program loads. I used this try, catch as previously suggested. Access 2003 and it is the same on both machines.

    catch (System.Exception ex){

    System.Windows.Forms.MessageBox.Show(ex.Message);}


  • Kevin M. Ellis

    Does your target machine have the .net framwork installed
  • Mike Monteith

    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!


  • SPaltridge

    I'm having the same trouble and cannot figure it out. I tried uninstalling .NET Framework 1.x and installing .NET Framework 2.0 directly (rather than through the deployment dependancy detection) but that still did not work.
  • Rana Ian

    Thank you, Thank you.  So simple it was hard.  I also have a registry problem. The error is: Class not Registered(Exception from HRESULT: 0x80040154(REGDB_E_CLASSNOTREG) it appears to have something to do with MSAcess or System.Date.Oledb.  I reinstalled MSAccess didn't help.  Any ideas
  • Adam23

    I still do not have a resolution. Can anybody help
  • Dan Williams

    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");
    }


  • LastHope

    Resolution. I started a new project and slowly created my application again delploying after adding each component that might create this problem. After adding the DSOframer control it recreated the issue. I removed it and the application deployed just fine.
  • --Alan---

    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.


  • deployment error