All Questions
Tagged with deployment c#
1,597
questions
167
votes
7
answers
156k
views
Install a .NET windows service without InstallUtil.exe
I have a standard .NET windows service written in C#.
Can it install itself without using InstallUtil?
Should I use the service installer class? How should I use it?
I want to be able to call the ...
91
votes
11
answers
35k
views
Web deployment task failed. (The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception.)
I am getting the following error when I use web deploy from visual studio 2010.
Web deployment task failed. (The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception.)
...
84
votes
2
answers
185k
views
Best way to deploy Visual Studio application that can run without installing
I wrote a fairly simple application with C#/.NET and can't figure out a good way to publish it. It's a sort of a "tool" that users would only run once, or run every few months. Because of ...
76
votes
5
answers
55k
views
How to deploy after a build with TeamCity?
I'm setting up TeamCity as my build server.
I have my project set up, it is updating correctly from subversion, and building ok.
So what's next?
Ideally, I'd like to have it auto deploy to a ...
74
votes
12
answers
61k
views
ILMerge Best Practices
Do you use ILMerge? Do you use ILMerge to merge multiple assemblies to ease deployment of dll's? Have you found problems with deployment/versioning in production after ILMerging assemblies together?
...
71
votes
10
answers
49k
views
How to debug into my nuget package deployed from TeamCity?
I have put a library that my team uses into a nuget package that is deployed from TeamCity into a network folder. I cannot debug into this code though! SymbolSource is one solution I have read about ...
70
votes
10
answers
43k
views
How to display ClickOnce Version number on Windows Forms
I have a windows forms application that is deployed to two different locations.
Intranet - ClickOnce
Internet - Installed on a citrix farm through Windows installer
I display ClickOnce version ...
69
votes
14
answers
44k
views
Determine assembly version during a post-build event
Let's say I wanted to create a static text file which ships with each release. I want the file to be updated with the version number of the release (as specified in AssemblyInfo.cs), but I don't want ...
62
votes
1
answer
25k
views
What creates the directory "app.publish" in visual studio?
I switched over visual studio 2010 express, to visual studio 2013.
Now, whenever I try to test the code, he says /bin/release/app.publish access is denied, giving back a error and forcing me to ...
58
votes
6
answers
289k
views
System.IO.FileNotFoundException: Could not load file or assembly 'X' or one of its dependencies when deploying the application
I'm having a strange problem with deploying an application, which references an assembly, written in managed c++.
I've created an assembly X, compiled it and referenced it in an exe file, called ...
55
votes
10
answers
71k
views
How do I find the fully qualified name of an assembly?
How do I find out the fully qualified name of my assembly such as:
MyNamespace.MyAssembly, version=1.0.3300.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089
I've managed to get my PublicKeyToken ...
46
votes
5
answers
9k
views
How to manually register ClickOnce file associations after installation?
Microsoft's ClickOnce deployment system offers an easy-to-use file association manager which is built into the Visual Studio deployment process. Developers can add up to 8 file associations which will ...
44
votes
8
answers
118k
views
Install windows service without InstallUtil.exe
I'm trying to deploy a windows service but not quite sure how to do it right. I built it as a console app to start with, I've now turned it into a windows service project and just call my class from ...
43
votes
21
answers
241k
views
The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception
I am deploying a desktop application to my clients that uses the Crystal Reports API to display and print forms. I am building my installer using InstallShield 2012. I have also included the .NET 4.0 ...
43
votes
6
answers
210k
views
How to automatically update an application without ClickOnce?
For the project I am working on, I am not allowed to use ClickOnce. My boss wants the program to look "real" (with an installer, etc).
I have installed Visual Studio 2012 Professional, and have been ...
40
votes
10
answers
42k
views
How can I prevent launching my app multiple times?
I deployed my C# WinForms application using ClickOnce installation. Everything works fine with it (after a lot of work) :), but now I'm facing a problem:
Whenever I click on the application shortcut ...
39
votes
3
answers
37k
views
How can I programmatically stop or start a website in IIS (6.0 and 7.0) using MsBuild?
I have Windows Server 2003 (IIS 6.0) and Windows Server 2008 (IIS 7.0) servers, and I use MSBuild for deploying web applications.
I need to do a safe deploy, and do this:
Stop a website in IIS 6 (or ...
38
votes
8
answers
21k
views
How do I deploy two ClickOnce versions simultaneously?
I would like the ability to have a test ClickOnce server for my applications where users can run both the production version and the test version in parallel. Is this possible?
I first tried using ...
35
votes
5
answers
16k
views
Getting site under construction message after azure webapp deployment
I had a network failure while publishing (using visual studio webdeploy ) my webapp to azure. Later i tried again, Then i got the below error message.
Error 5 Web deployment task failed. (...
35
votes
2
answers
23k
views
How to reference different version of dll with MSBuild
I have a web application project which utilises a set of 3rd party dll's. The issue is that the dev/staging environment is 32bit, but production is 64bit. As such, we have to re-reference and build ...
34
votes
14
answers
42k
views
.NET application cannot start and receive XamlParseException
I wrote an app that can install and work on my development PC (a Window 7).
Development Environment: Window 7, VS2010 WPF C# with both .NET 4 and .NET 3.5 installed
On other client computer (XP SP3, ...
34
votes
7
answers
41k
views
How can I ensure that appsettings.dev.json gets copied to the output folder?
I have three configuration files, one for each environment:
appsettings.json -> production
appsettings.dev.json -> development
appsettings.stg.json -> staging
If I set ASPNETCORE_ENVIRONMENT to dev,...
31
votes
4
answers
19k
views
How can I include line numbers in a stack trace without a pdb?
We are currently distributing a WinForms app without .pdb files to conserve space on client machines and download bandwidth. When we get stack traces, we are getting method names but not line numbers....
31
votes
3
answers
11k
views
Merge msi and exe
My deployment project creates and .msi-file and an .exe-file. Is it possible to merge these into one .exe?
30
votes
5
answers
20k
views
Forcing browsers to reload Silverlight xap after an update
I have a Silverlight control packaged up and deployed to a SharePoint web part. I'm having trouble with the browser loading new versions of the control after I push an update. I'm updating the ...
29
votes
4
answers
7k
views
Refresh dependencies raises: Could Not Be Completed. App called interface marshalled for different thread
Out of the blue I can no longer rebuild the deployment project, or refresh it's dependencies. This is related to a visual studio 2010 desktop c# application.
Nothing new has been added since the ...
29
votes
4
answers
16k
views
Web deployment task failed. (Could not complete the request)
I want to publish my project but:
Error1
Web deployment task failed. (Could not complete the request to remote agent URL 'https://xxxxx:xxxx/msdeploy.axd?site=VoIP'.)
Could not complete the request ...
28
votes
6
answers
72k
views
Could not load file or assembly 'System.Web.Razor' or one of its dependencies
I used Umbraco 4.11.6 in my website(web application).My website is worked in localhost(tested from Visual studio 2012 and IIS(v7)) but when I run it from internet space I got an error.
The error was:
...
27
votes
2
answers
6k
views
Is it necessary to deploy the XML file in a class library?
I have developed a lot of class library projects in VS 2012 to be used in Windows Forms and Web forms applications.
The question is simple. Do I need to deploy the DLL file itself together with the ...
27
votes
6
answers
32k
views
How to host multiple .NET Core apps under the same URL?
I am building a few web sites in ASP.NET Core (multiple user interface applications and a WebAPI app). They all work together, utilising the WebAPI. For the purpose of my question we'll call them App1,...
24
votes
4
answers
49k
views
How can I deploy a .NET application that uses ODAC without installing the whole component to the user?
I have written a C# application that connects to an Oracle 10g database. Using Oracle Data Access Component 11.2 "ODAC", it works perfectly on my machine.
And now I want to deploy the application and ...
24
votes
6
answers
9k
views
Disable IIS Idle Timeouts in Azure Web Role
To prevent AppPool recycling every 20 minutes, I'd like to remove IIS AppPool Idle Timeouts when my Azure Web Role starts. My website is a Web Application Project.
How do I do this?
24
votes
3
answers
22k
views
How to keep the installer's version number in sync with the installed assemblies' version numbers?
In my current project, I'm producing weekly releases. I've been using the technique described in this post to keep the version numbers of all of the assemblies in my project in sync. (I don't ...
23
votes
2
answers
34k
views
how to add publishing profile to a new sln in vs2012?
I have read the publishing profiles have replaced WDP
but I cannot find decent tutorial
how to add and modify pubxml file to my project
any help will be appreciated
23
votes
6
answers
11k
views
Restart WPF application after click-once update (start the new version)
How to restart WPF application after it has been updated using click-once, i need to start the new version!
23
votes
3
answers
2k
views
Windows Phone 8.1 MediaCapture freezes the phone
I want to make a simple app that will allow me to check few parameters of every frame of preview, but I got stuck at running and stopping preview.
/// <summary>
/// An empty page that ...
22
votes
2
answers
31k
views
Unable to find the requested .Net Framework Data Provider - SQLite
I thought that sqlite was simple but it is giving me a hard time. I just want to create an application where I can connect to a sqlite database using the ado.net entity data classes.
I am having this ...
22
votes
5
answers
10k
views
ClickOnce deployment is leaving multiple versions (yes, more than two)
I've got a ClickOnce application that is leaving all old versions on my disk. It's an internal corporate application that gets frequent updates, so this is a disaster for rapidly inflating our backup ...
20
votes
5
answers
22k
views
how to deploy windows phone 10 application to a device?
I am using a Nokia lumia630 device, which uses latest windows 10 insider preview build available.
i created a sample windows UWP application and took a build of the same.The output of the build is an ...
19
votes
6
answers
115k
views
ERROR Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies
I'm deploying my website on the server.
My website is done using asp.net c# 4 and EF 4.
I receive this error:
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This ...
19
votes
9
answers
3k
views
Is it possible to deploy an enterprise ASP.NET application and SQL schema changes with zero downtime?
We have a huge ASP.NET web application which needs to be deployed to LIVE with zero or nearly zero downtime. Let me point out that I've read the following question/answers but unfortunately it doesn't ...
18
votes
3
answers
17k
views
ClickOnce start menu icon
How do I set the icon for my start menu shortcut, when I deploy and install my application with ClickOnce?
Platform: Visual Studio 2010 Professional Beta 1
18
votes
1
answer
5k
views
Which options are the most performance way of publishing asp.net website project - deployment
I am asking in terms of performance
Which would run fastest on the server (windows server 2012 r2 - 24 cores - 64 gb ram) - serving pages fastest way - reducing load times
Asp.net website project , ...
16
votes
6
answers
82k
views
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine (server)
I know that is this question has dozen of answers and posts, but nothing works for me.
I have my MVC 5 application and I deploy it to the IIS 7.5 to my server. Application runs great, everything is ...
16
votes
7
answers
10k
views
C#'s equivalent of jar files?
Java provides the jar file so that all the class files and jar files are merged into one file.
Does C# provide equivalent/similar functionality?
16
votes
3
answers
55k
views
How to deploy application with sql server database on clients
I have designed an accounts software for my clients. I used SQL Server 2008 database with Stored Procedures. It is developed in Visual Studio 2010, .NET Framework 3.0. I have more than 500 clients ...
16
votes
6
answers
7k
views
How to change database design in a deployed application?
Situation
I'm creating a C#/WPF 4 application using a SQL Compact Edition database as a backend with the Entity Framework and deploying with ClickOnce.
I'm fairly new to applications using databases,...
16
votes
2
answers
7k
views
"Build Deployment Package" VS2010 from script
How is it possible to build a web service deployment package from script.
I can msbuild /target:rebuild /p:Configuration=Debug ".\MyProject.sln" but it does not build the deployment package.
16
votes
2
answers
921
views
ASP.NET framework bug
Go into your iis machine level settings and add
<deployment retail="true" />
As specified in http://msdn.microsoft.com/en-us/library/ms228298.aspx
Create a new web project, add a label and ...
16
votes
3
answers
9k
views
How to do custom tasks during install/uninstall of a ClickOnce app?
Is there any way to run custom code during the installation or uninstallation of a ClickOnce app?
This question has been asked before here, but that was a long time ago, the answer given there was ...