I made an wpf application on .Net Framework 4.0. It is using entity framework and SQL server 2012 as a database.
Now I want to deploy this machine on another computer. What needs to be installed on that machine. I am assuming that fresh OS has been installed on target machine.
I've already deployed the same application with install shield, here's the list of all needed deps (downloadable for free from microsoft website) from WinXP SP2 to Win8 and works on both x84 | x64
The no need for entity Framework its already in .netFX 4.0
you can also specify the sqlserver configuration parameters using
SQLEXPR_x86_ENU /ACTION=Install /FEATURES=SQLENGINE /INSTANCENAME=SQLEXPRESS /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /AGTSVCACCOUNT="NT AUTHORITY\LOCAL Service" /SQLSVCSTARTUPTYPE=Automatic /BROWSERSVCSTARTUPTYPE=Automatic /TCPENABLED=1 /NPENABLED=1 /ADDCURRENTUSERASSQLADMIN
It depends on how you plan to deploy really. Generally, you'll need a copy of SQL Server (full or express edition depending on budget / whether the limitations of express are a problem for your situation).
You will also need to install the .NET framework and any other dependencies (depending of your app). You could use Visual Studio to create an installer, then it will bundle all of the dependencies and make the installation on other machines nice and easy.
Related
I want need for the Winforms application to be installed. For that I am setting Copy Local to true for MY referenced dlls. I build My project and copy all the files in /Bin/Release or /Bin/Debug (as my project settings).
But Problem is I have to installed on the client's machine is the appropriate .Net Framework version.
is there any option to Winforms application to be run on the client's machine without .Net Framework installation. So I can copy in USB Drive and run it any where,
The short answer is No.
However, as you can see from the Microsoft site, if you are using a Microsoft Windows Version that is still supported, you have very good chances of having a Framework Version 3.0 or 3.5 preinstalled and already available.
I am new to C# and SQL Server databases, so this may be a stupid question but I am confused.
I want to setup an embedded database on a client machine automatically when he installs my application. I know SQL Server Compact Edition is there but there are so many restrictions in SQL Server CE.
Can I use .mdf files as an embedded database? If yes then how can I setup it on client machine automatically? or is there any other option to solve my problem?
I would recommended to use SQLite. It is simpler to deploy. Also, SQL Server Compact appears to be discontinued.
Is SQL Server Compact discontinued from Visual Studio 2013?
You can use SQLite which doesn't require any installation on the client machine.
SQLite depends on the Visual C++ runtime, but you don't need to install it on the client machine. The system.data.sqlite download page contains several "static" packages that already contain the runtime.
All the "static" packages contain either native or mixed-mode assembly
binaries linked statically to the appropriate version of the Visual
C++ runtime. Typically, these packages are used in cases where
customer machines may not have the necessary version of the Visual C++
runtime installed and it cannot be installed due to limited
privileges.
For example, on my machine I am running Windows 8.1 x64 so I went under Precompiled Statically-Linked Binaries for 64-bit Windows (.NET Framework 4.0) and downloaded sqlite-netFx40-static-binary-x64-2010-1.0.90.0.zip.
This binary package contains all the binaries for the x64 version of
the System.Data.SQLite 1.0.90.0 (3.8.2) package. The Visual C++ 2010
SP1 runtime for x64 is statically linked. The .NET Framework 4.0 is
required.
I then unzipped the package and ran test.exe to make sure everything works. Zero installation required.
I have created a simple c# console application with .net framework 2.0 that uses MySql. What steps should I do in order to get the program run on another computer(Windows Server 2008)?
I already have MS .Net framework Clent Profile and MS .Net framework Clent Profile Extended installed.
Should I install .net framework 2.0 Service pack too on the other pc?
Thanks.
You just need .Net Framework 2.0 or later to be installed on the machine.
It would would be better to make an installer.
Make sure you have .Net framework 2.0 installed on the computer. Also make sure you have the .Net dlls required for making connection. If your application is going to use the local machine as MySQL server then, you may have to intall MySQL on the client machine as well, or you can make an installer with MySQL installation included. You can use InnoSetup or you may check out the following thread Deploy MySQL Server + DB with .Net application
Environment - .Net Framework.
Version - Same as one or higher in which you app is targeted.
Why i said no particular version number because what if you app is in 4.0 and you have 2.0 installed?
That's why same version or higher.
I want to install my c# windows application on a client place which does not have .NET framework or SQL server. What files do I need to install in order for the application to work with database and how to create a package?
Create a setup project from Visual Studio and specify in the prerequisitesto include .NET framework and SQL Server Express. these packages will then be included in the setup or I think you can also specify to download automatically on setup execution.
You can use ClickOnce deployment for this. With ClickOnce you will give the client an install package that can check for prerequisites and install them if neccesarry. The .NET framework and SqlServer express can be installed this way.
Check the following link for more info: ClickOnce
We upgraded our application to .NET 4.0 a while ago, and now need to add the ability to backup SQL Server 2008 databases from the app. However, it doesn't seem that SMO is available for .NET 4. Is there a workaround or better way to perform a database backup (note that our backups need to be user initiated over a website, so we cannot schedule them).
Use BACKUP DATABASE?
Otherwise, try these One, Two
You can still reference SMO from a .NET 4.0 application, even with it targeting the .NET 2.0 framework.
If you get the Mixed mode assembly is built against version 'v2.0.50727' of the
runtime and cannot be loaded in the 4.0 runtime without additional
configuration information. exception, installing the latest version of the SQL Server SDK (SQL Server 2008 R2) should fix it, even if the machine is running an older version of SQL Server e.g. 2005.