I have Developed a C# project using Visual Studio 2015 and in this project, I have used the Microsoft SQL Server 2017 Database System.
The Problem is When I tried to run my project's Setup in other computer it shows the following Message whenever I run the project after the installation in another computer.
I have tried installing the MS SQL server in other computer it is displaying the same message. What I have done wrong?? Please help me. How to run my project in any computer?
You are not connected to SQL server yet. Make sure that the SQL services are running correctly. You can check them by clicking on My Computer->Manage->Services And Applications->Services.
Related
I'm trying to learn how to create a simple application using Visual Studio IDE in C#.
I wrote a little application that uses a local SQL Server database for reading and storing data. On my machine, the program seems to work normally, but when trying to install the application on client computer it seems unable to read from the database.
I've tried to include the following prerequisites to the publish properties but it doesn't work:
Microsoft .NET Framework 4.5.2
SQL Server 2012 Express LocalDB
Any ideas about the right way to do it?
Thanks to all.
You need to install SQL Server Express LocalDB (SqlLocalDB.MSI) on the computer you are deploying your ClickOnce application to.
Selecting "SQL Server Express LocalDB" in the Prerequisites window and using "Download prerequisites from the component vendor's web site" should take care of that:
If you do that it should install the LocalDB for you and any database errors are more than likely resulting from connection string errors or leaving Integrated Security enabled.
You need to test on a target computer which does not have "SQL Server Express LocalDB" installed and verify that after the ClickOnce deployment it is installed. This will confirm that the problem is not the missing prerequisites but the database access issues...
Recently I tried to deploy SSIS packages on our production environment and after struggling with some errors I checked contents of packages by importing them from server(not from deployment file) into SSDT. What I found was really interesting - C# code from Script Task(we got only one script task) was gone, there was only template code even with comments that you see when you add Script Task to your package, it looked like it wasn't ever edited by anyone.
I asked my colleague if he could deploy same project on same server instead of me, and it worked, code was on it's place and everything went smooth from there.
What may have caused this behavior? We both are server admins, we both have sysadmin permissions on SQL Server and we don't know about any permissions that he has and I don't.
EDIT: We were both deploying same .ispac project deployment file, none of us edited it after it was "production ready". We also deploy it in the same way - double click on .ispac file, and using Integration Services Deployment Wizard.
Packages are prepared on different server.
I have experienced a very similar problem. A previous post existed which may have been subsequently removed, but I can attest that the process script task in the SSIS packages are being replaced with an empty or default Task. I suspect an incompatibility in versions or a dll found in the SQL Server\120\DTS\Binn directories.
We currently developed using Visual Studio 2013 Professional with SSDT integrated into it (did not use the shell or standalone version). Development took place on a Windows 7 Enterprise 64-bit machine with SP1. All testing was fine locally using SSDT. When deployed to the server, testing worked as intended. The server is where I believe the problem is originating. We deployed to a SQL Server Enterprise Edition running on Windows Server 2012 R2. Microsoft SQL Server 2014 (SP1-GDR) (KB3194720) - 12.0.4232.0 (X64). The ispac was generated from an export in SSMS in the SQL Server Integration Services Catalog. The ispac was then deployed to another site.
Turns out the site had deployed this to a SQL Server Developer 64 Bit instance. Theoretically, this should work, but when importing the deployed project back into a Visual Studio SSDT standalone instance (not embedded in Visual Studio Professional) at this site, all the Process Script Tasks were replaced with the default instance of a Process Task.
When reproducing the scenario in-house, on a SQL Server 2014 Developer 64 Bit as the deployment site, and then importing it back into a new Visual Studio SSDT project, the Process Scripts are indeed replaced. When creating a new Visual Studio SSDT project and importing them from the Enterprise Edition, the Process Scripts are all there.
For us, it seems to be a strong correlation between the SQL Server versions, or the fact of them being different.
I have created a C# application with a MySql database in Visual Studio 2015. I want to deploy my project using the publish method in Visual Studio including the database. I do not know how to deploy the MySQL database so I can use my application on the target computer without installing any MySQL server or database manually. I want that when I install my application on the target computer, it will auto detect the database and work.
Please help. Thanks.
If you use database storage as server means there is no need to install SQL and mySql Database Software. But you need to configure database in webconfig
I am stuck while deploying my windows application (C#) in Visual Studio 2008. I am using setup wizard project to create the msi/exe file. This setup files I need to copy to the UAT server, run the setup and then use the application.
The main issue here is, I have created this application on my local machine and then installing it on UAT by taking remote of UAT server. This works properly. But when my colleague is running same application from his local machine by taking remote of UAT server, the application crashes.
Since the application working with my login, there seems to be no problem with the code.We are using our own windows login credentials for taking remote of UAT server.
Below is the error screenshot:
Please suggest what can be the possible reasons for the same application crashing with other user's id.
Thanks in advance.
0xe053534f is a StackOverflowException. You need to check if your setup script logic is resulting in any such stack overflow
I am using Visual Studio Setup and Deployment deploying my wpf app. My aim is to package my wpf app so that I can install and run it in any machines which don't have sql installed and machines don't have internet access. I am using sql server express 2008 r2 and VS2010. I did some research, migration might be the solution but I have no idea how to use it and I don't find helpful tutorials for that. Please help me. Thanks in advance.
You can use Microsoft SQL Server Compact Edition with a private deployment. See this good article
In your setup Project, Go to project properties, Click for prerequisite button and check sql server version you are using for your project, also check the .Net version of the project.
if the host computer don't have the internet than select "specify the install option" as Download the prerequisites form the same location as my application.
This will create a full package of your application and ready to be deployed in any machine.