Help on deploying a c# application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • navanova
    New Member
    • Feb 2007
    • 30

    Help on deploying a c# application

    Hi Guys, I've developed a c# application using MS Visual studio 2005. After finilizing developing the application, I want to deploy the application so that i can install it on the user PC. Can anyone tell me how to do that.

    Thanks
  • cloud255
    Recognized Expert Contributor
    • Jun 2008
    • 427

    #2
    Right click on your solution,
    select add new project,
    select other project types
    select setup and deployment

    then pick what you want probably a setup project, do some configuration to set the version number, owner etc then build the solution. this will create an .msi file for you.

    good luck

    Comment

    • Curtis Rutland
      Recognized Expert Specialist
      • Apr 2008
      • 3264

      #3
      Alternatively, you can use OneClick. Select Publish <project name> under the "Build" menu. Follow the wizard. Now you have a project easily deployed from a network share, cdrom, or website.

      Comment

      • navanova
        New Member
        • Feb 2007
        • 30

        #4
        I've done all that. But when I tried to install it on the user PC the installation intrrupts and displays the following message.

        "Unable to install or run the application. The application requires that assembly CrystalDecision s.CrystalReport s.Engine Version 10.2.3600.0 be installed in Global Assembly Cache (GAC) first."

        What does it mean?

        Thanks

        Comment

        • nmsreddi
          Contributor
          • Jul 2006
          • 366

          #5
          Hello

          After adding all the required files and images to your setup application, before compiling the application make sure that all the required DLLs other installation files are included ,for this you have use

          ProjectProperti es --Prerequisites there you will find some of the common required dlls and framework also check the corresponding check box and select the correct radio button as from current location .

          Hope this may work for you.

          Regards
          nmsreddi

          Comment

          • navanova
            New Member
            • Feb 2007
            • 30

            #6
            After doing what you guys told me, it installs the application. However, it didn't find the database server. isn't the database incorporated in the setup? I thought the database is included in the exe file. if not, what shall I do to include the database together with the setup?

            Thanks,

            Comment

            • nmsreddi
              Contributor
              • Jul 2006
              • 366

              #7
              Hello

              what database you are using , if it is some thing like .mdb you can include that in your setup itself .but you cannot include Sqlserver or oracle.

              you have to go for other alternatives ,any way in your application you will add app.config file for connections to Database, so you have to modify that connection string either manually(not recomended) or programatically which ever you wish.

              for now i am changing manually after installing ,but no particular idea how to do it programatically .

              Regards
              nmsreddi

              Comment

              Working...