Make setup
-
-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.
-
-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.
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.
-
-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.
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
-
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.
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.
-
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
-
-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.
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