Click here to Skip to main content
15,885,197 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have created c#.net desktop application in VS2012 with localDB.
now for deployment is it necessary to install sqlexpress or sql server at client pc ??
what exact steps for deployment.

I have also use crystal report in it, so how to deploy that crystal report also work properly.
Posted
Comments

No need of sqlexpress, but you need to include the sql dlls in deployment.
Goto project -> Properties -> Publish -> Application Files
Include all the sql dlls
 
Share this answer
 
For window application, it would be better to use compact SQL. For this, you can simply install SQL compact from nuget. It will copy all the dependencies in application. Once we make the installer we simply need to add all those dependencies(DLL).
 
Share this answer
 
No, the connection string that you'll be using in your connection to the resource can have remote connections included in it. So, that your data can be present at any place, you can connect to it by providing an IP address for the server where to get the data from. You can get the connection string for you Database at, http://www.connectionstrings.com/[^]

Secondly, since this is a desktop application, you will need to add a few assemblies, or should I say, all of the dependencies in the package. Use the Solution 1 to extract all of the required assemblies. You just need to use the third-party assemblies or the ones you just created. The .NET assemblies would be present there already so you don't need to ship those. So, just the .dll files that you need must be shipped in order for your program to execute without any problem.

I have never worked with Crystal Reports, but if Crystal Report requires a dll file, then yes. You need to ship that dll too on the client system.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900