C# Deployment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arggg
    New Member
    • Mar 2008
    • 91

    C# Deployment

    I have created a program with VS2008 Express C# and it uses the MySQL Connector NET. However when I publish the program with oneclick and install it on a seperate computer it gets a send bug report to M$ error with MySQL.Data.Mysq lclient. Why is this not packaging properly? I read up on using the Windows Application Deployment but cannot find that template.

    Any ideas to get everything packaged into one setup file so they dont have to go and download many install files to get my program to work?

    I'm looking for something that is free.
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    Try creating a Setup Project. That builds a Setup.exe and a .MSI file. It also detects dependencies. Add a setup project to your solution. Right click the setup project, add project output, and select the project you are installing. Right click the setup project->View->Custom actions. Right click the custom actions (top of the tree)->Add Custom Action, click the application folder, and click OK twice. Right click the setup project, and click build.

    Sorry if that's too hard to follow or not clear enough. If it isn't, let me know and I'll write it out more fully.

    If that doesn't work, try (for debugging purposes) wrapping your whole Main function in a Try Catch block, and Console.WriteLi ne() the exception's message. Then you'll at least get a more detailed view of what's going on.

    Originally posted by arggg
    I have created a program with VS2008 Express C# and it uses the MySQL Connector NET. However when I publish the program with oneclick and install it on a seperate computer it gets a send bug report to M$ error with MySQL.Data.Mysq lclient. Why is this not packaging properly? I read up on using the Windows Application Deployment but cannot find that template.

    Any ideas to get everything packaged into one setup file so they dont have to go and download many install files to get my program to work?

    I'm looking for something that is free.
    Last edited by Curtis Rutland; May 20 '08, 10:18 PM. Reason: moved quote to bottom

    Comment

    • vanc
      Recognized Expert New Member
      • Mar 2007
      • 211

      #3
      It sounds like you have problem connecting to database in runtime. What you should do is to configure MySQL properly to allow remote connection otherwise you can't connect to database files. Cheers.

      Comment

      • arggg
        New Member
        • Mar 2008
        • 91

        #4
        I cannot do a setup project as it doesnt allow that in express.

        Thanks vanc for your response. I figured it out a few hours after this post however you were correct. It could not connect to the database as the host I was running the program from was not allowed. I also added a try and catch to better notify me when that was the issue. Thanks for the quick reply both of you.

        I guess for the time being I will just have to use clickOnce to do all the packaging.

        Comment

        Working...