how to fix visual studio warning - c#

i have made a app in visual studio 2010 ultimate the problem i am facing is when i publish my app then it is genrating some warning which is this
Warning 1 One of the following items 'Microsoft .NET Framework 4 (x86 and x64)
, .NET Framework 3.5 SP1' is required by 'SQL Server 2008 Express',
but none were included. WindowsFormsApplication1
i know there is some problem which will i face as i seen my app it is working fine but some feature related to sql server it is not working. how can i fix this warning? i have gone through MSDN but there is no solution i got, i have unistalled visual studio and reinstalled it but the same problem i am facing

In Visual Studio go to Project.. Properties.. Publish. Click on Prerequisites. If you have installed the Client Profile then turn on the Client Profile and turn off then one that is not installed.

From this Microsoft® SQL Server® 2008 Express page;
Instructions
Step 1: Download and install Microsoft .Net Framework 3.5 SP1.
Step 2: Download and install Windows Installer 4.5.
Step 3: Download SQL Server 2008 Express by clicking the appropriate link later on this page. To start the installation immediately, click Run. To install SQL Server Express at a later time, click Save.
You need to download first .NET Framework 3.5 SP1 before using SQL Server 2008 Express.

You have to check on your Customer's PC if .net-Framework is in the required Version installed.
http://support.microsoft.com/kb/318785
Probably Service Pack 1 is missing...

Related

SQL database not connecting to Visual Studio 2015

I have downloaded and installed Visual Studio 2015 Community (because it is being used in college professional version) and SQL Server 2016 Service Pack 3 with SQL Server Management Studio 18.
I have been trying to connect or create a new database connection and it is showing me the attached error
Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies.
I have tried multiple solutions here and it took me a whole day and it's still not fixed.
I have downloaded all SQL Server features from feature pack found from here: https://www.microsoft.com/en-us/download/details.aspx?id=103444
Installed packages via nupkg still no success.
Also, I checked the C:/Program Data/assembly and it contained the Microsoft.SqlServer.Management.Sdk.Sfc version 13.0.0.0
while it gives the error of 12.0.0.0.
I need help!
PS: I had previously installed 2019 version but uninstalled it and all of it's components (I think all) is it the issue? if that is recommend something to solve this issue, I have a project to show on Monday.
Please try download and install Microsoft SQL Server System CLR Types and Microsoft SQL Server 2014 Shared Management Objects from :
https://www.microsoft.com/en-US/download/details.aspx?id=42295
In addition, which version of your Windows? If you are using Windows 10, SQL Server 2012 requires service pack 2 to make it compatible with Windows 10. Please download and install from below link.
http://www.microsoft.com/en-us/download/details.aspx?id=43351

Publish to web is not working after upgraded from VS2013 to VS 2015 and from MSSQL LocalDB 2012 to 2014

I updated Visual Studio 2013 to 2015 and updated SQL Server (LocalDB) from version 2012 to 2014. Now when I want to publish my project to the web I get this error.
Web deployment task failed. The database platform service with type Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider is not valid. You must make sure the service is loaded, or you must provide the full type name of a valid database platform service.
I searched through the files in the project like sln and csproj files and set everything to the correct VS2015 (14.0) version.
The server where I publish is running SQL Server Web 2012, but I can't update that server just yet.
Can anyone help me? I don't know where to look to fix this. Thanks.

Export SQL Server to SQL Server Compact 4.0 with VS Express

I have created a C# application that connects to a Microsoft SQL Server Express Edition (64-bit) database. However, I want to transition the project from SQL Server to a local database and convert the .mdf file to a .sdf file.
The best solution I have found is SQL Server Compact Toolbox written by ErikEJ also pointed out by this post. When attempting to install the add-in to Visual Studio I receive an error:
This extension is not installable on any currently installed products.
even though the installer recognizes that Microsoft Visual Studio Express 2012 for Windows Desktop is installed. I believe this is only targeted for Professional and above.
I have also attempted to use the standalone tool. However, the option I want is grayed out and it's for version 3.5 instead of the current version 4.0.
I have also looked at trying to export/convert from Microsoft SQL Server Management Studio 11.0.3128.0. However, I have had no luck.
Is there a solution for VS Express Edition, or am I out of luck?
Just use the standalone edition for SQL Server Compact 4.0, available here: https://sqlcetoolbox.codeplex.com/releases/view/104096

Deployed application using winform application with Entity Framework doesn't work on clients PCs

I'm new in deploying projects in Visual Studio 2010
I'm using EF 5 to code a Winforms application with SQL Server & SQL Server CE 4.0 optional database selection.
I created setup project in Visual Studio 2010
I've already added .Net Framework 4 Full package X64_X86 in addition to ReportViewer 2010 as prerequisites.
I've created my application download prerequisites from same location as my application
every dll, script,file I've used or created marked as copy always and added to setup project as usual.
when I install my application in developer machine the application run perfectly! (PC1)
when I tested my application to fresh copy of windows the installing runs OK and installation perform to install Net framework , report viewer and all my files copied in the right way as my VS 2010 release folder shown (Nothing Missing at all except vhost files)
but when I run my application, it's not working at all! it's stopped of working before my splash screen starting!!!.(PC2)
I've re-installed the application on pre-installed SQL Server 2008 R2 Express edition but it works perfectly! (PC3)
My application is using connection string stored in encrypted file and when the file doesn't exist, it display a form (simulate to add connection form in visual studio IDE) that create and build the connection string encrypted file.
Note: PC1,PC2,PC3 are Identical and have same brand ( even in hardware and software).
I've searched all about deployment and publishing either click once or with creating setup project but nothing unusual or missing from what I've done
what the hack?! what I'm missing??.
I'm actually faced this issue before
Check your .Net framework if you are installing .Net Client use the full .net framework 4

Creating a chained installation using Visual Studio

I have created a Windows Forms C# application. But I am facing problems in creating a setup for my application.
My problem is
I want to install the prerequisites as a chain of installers with a common progress bar.
.NET Framework 3.5
SQL Server Express Edition SP2 (optional, that is, install only if SQL Server is not installed)
Crystal Reports redistributable package.
All these prerequisites must be embedded in the setup file. I have created a bootstrapper to install the SQL Server Express Edition if it not already installed.
After installation, it should update the exe.config file with the connection string datasource with the SQL Server Express Edition instance.
You can get WiX 3 to bootstrap prerequisites quite easily. Here is an explanation showing how to do it for .NET 3.5 and Windows Installer.
You should be able to use the same principle for SQL Server Express Edition and Crystal Reports.

Categories

Resources