Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Make setup

Make setup

Scheduled Pinned Locked Moved C#
csharpdatabasesql-serverhtmlsysadmin
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nekshan
    wrote on last edited by
    #1

    -I have made an application in c#.net,window application. -Now to install it on other computers, i want to make its setup. -I have already made setup of the application using d below link : http://www.codersource.net/csharp_installer_projects.html[^] - I have made my database in sqlserver2000, -I have copied its 2 (database file and log file) from its actual path (C:\Program Files\Microsoft SQL Server\MSSQL\Data) and pasted it in my dotnet application folder. -While making setup of application i just included those 2 database files with the application(from >bin>debug) of project (as instructed in above link) Setup is build without errors, but when i run i get errors,they r related to sqlserver. -Do i need to make database setup separately?How? I would be grateful,if any help is offered. Thank you. Regards nekshan.

    V V R 3 Replies Last reply
    0
    • N Nekshan

      -I have made an application in c#.net,window application. -Now to install it on other computers, i want to make its setup. -I have already made setup of the application using d below link : http://www.codersource.net/csharp_installer_projects.html[^] - I have made my database in sqlserver2000, -I have copied its 2 (database file and log file) from its actual path (C:\Program Files\Microsoft SQL Server\MSSQL\Data) and pasted it in my dotnet application folder. -While making setup of application i just included those 2 database files with the application(from >bin>debug) of project (as instructed in above link) Setup is build without errors, but when i run i get errors,they r related to sqlserver. -Do i need to make database setup separately?How? I would be grateful,if any help is offered. Thank you. Regards nekshan.

      V Offline
      V Offline
      virendra patel
      wrote on last edited by
      #2

      the only error facing by all users is of .net framework. if the target machine doesn't have .net framework then not able to run setup. check this is facing error. or my friend is on lunch once he came then i ask him & then replay u the exact error which u faced. bye.

      N 1 Reply Last reply
      0
      • N Nekshan

        -I have made an application in c#.net,window application. -Now to install it on other computers, i want to make its setup. -I have already made setup of the application using d below link : http://www.codersource.net/csharp_installer_projects.html[^] - I have made my database in sqlserver2000, -I have copied its 2 (database file and log file) from its actual path (C:\Program Files\Microsoft SQL Server\MSSQL\Data) and pasted it in my dotnet application folder. -While making setup of application i just included those 2 database files with the application(from >bin>debug) of project (as instructed in above link) Setup is build without errors, but when i run i get errors,they r related to sqlserver. -Do i need to make database setup separately?How? I would be grateful,if any help is offered. Thank you. Regards nekshan.

        V Offline
        V Offline
        Vikram A Punathambekar
        wrote on last edited by
        #3

        You said you're using SQL Server, and copied the database files on the client machine, but is SQL Server actually installed on that machine? If not, you're out of luck. You will either have to install SQL Server on the machine where you install the database files, or you will have to go for some other data source, like MS Access.

        Cheers, Vikram.


        "But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia." - Marc Clifton on betas.

        Join the CP group at NationStates. Password: byalmightybob

        N 1 Reply Last reply
        0
        • V virendra patel

          the only error facing by all users is of .net framework. if the target machine doesn't have .net framework then not able to run setup. check this is facing error. or my friend is on lunch once he came then i ask him & then replay u the exact error which u faced. bye.

          N Offline
          N Offline
          Nekshan
          wrote on last edited by
          #4

          I created setup(as instructed in that link) just included 1 application of my proj(from >bin>debug)and my 2 sqlserver (database files) in the application setup(as instructed in that given link). (In that link they used access,i have used sqlserver.) It is build successfully, but M getting this error after running the created setup (application): System.InvalidOperationException: The ConnectionString property has not been initialized. at System.Data.SqlClient.SqlConnection.PermissionDemand() at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection) at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) at System.Data.SqlClient.SqlConnection.Open() at WindowsApplication1.login.login1_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.PerformClick() at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData) at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData) at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData) at System.Windows.Forms.Control.PreProcessMessage(Message& msg) at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg) at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg) plz chk n tell thanks. wen r u coming?? tc cu soon.

          1 Reply Last reply
          0
          • V Vikram A Punathambekar

            You said you're using SQL Server, and copied the database files on the client machine, but is SQL Server actually installed on that machine? If not, you're out of luck. You will either have to install SQL Server on the machine where you install the database files, or you will have to go for some other data source, like MS Access.

            Cheers, Vikram.


            "But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia." - Marc Clifton on betas.

            Join the CP group at NationStates. Password: byalmightybob

            N Offline
            N Offline
            Nekshan
            wrote on last edited by
            #5

            Yes, SQL Server is installed on that machine. Even if i run that setup on my own pc(which has sqlserver), it is giving this error :-(

            1 Reply Last reply
            0
            • N Nekshan

              -I have made an application in c#.net,window application. -Now to install it on other computers, i want to make its setup. -I have already made setup of the application using d below link : http://www.codersource.net/csharp_installer_projects.html[^] - I have made my database in sqlserver2000, -I have copied its 2 (database file and log file) from its actual path (C:\Program Files\Microsoft SQL Server\MSSQL\Data) and pasted it in my dotnet application folder. -While making setup of application i just included those 2 database files with the application(from >bin>debug) of project (as instructed in above link) Setup is build without errors, but when i run i get errors,they r related to sqlserver. -Do i need to make database setup separately?How? I would be grateful,if any help is offered. Thank you. Regards nekshan.

              R Offline
              R Offline
              Rocky
              wrote on last edited by
              #6

              I've read the article that tells u how to make a setup... and the database it was talking abt was a MS Access Database which they copied in the application folder but in case of MSSQL, I think this will not suffice coz you need to restore that Database in the SQL Server on the end user machine. or whatever ur network configurations are. So just install the application on the end user and restore the Database on the End user machine so that it can work properly. hope it helps Rocky

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups