Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Yuval Peled's user avatar
  • 5,028
149 votes
26 answers
216k views

Error CS1705: "which has a higher version than referenced assembly"

I've been looking into this for a bit now and haven't gotten it resolved. I get the following error message: Compiler Error Message: CS1705: Assembly 'My.Model, Version=1.1.4422.23773, Culture=...
jbizzle's user avatar
  • 1,553
98 votes
19 answers
115k views

What's the foolproof way to tell which version(s) of .NET are installed on a production Windows Server?

This question is not so much programming related as it is deployment related. I find myself conversing a lot with the group in my company whose job it is to maintain our production Windows servers ...
Tom Kidd's user avatar
  • 12.9k
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? ...
James Pogran's user avatar
  • 4,339
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 ...
dance2die's user avatar
  • 36.6k
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 ...
Winston Smith's user avatar
67 votes
4 answers
45k views

What alternatives are there to ClickOnce? [closed]

I've used ClickOnce a lot over the years, but I have run up against a lot of its limitations. What alternatives are there for web deployment? So far the only one I've been able to turn up is ...
ScottB's user avatar
  • 1,363
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 ...
Arsen Zahray's user avatar
54 votes
11 answers
28k views

Do you have to deploy the .pdb file with compiling under release?

Do you have to deploy the .pdb file with compiling under release? Why does it even compile a .pdb when you do a release build anyway?
user avatar
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 ...
Evan Wondrasek's user avatar
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 ...
gwin003's user avatar
  • 7,671
42 votes
4 answers
12k views

When should I deploy my assemblies into the GAC?

I would like to know practically what kind of Assemblies should I deploy in GAC. Case 1: If in my Solution multiple project uses log4net.dll then should it be deployed in GAC? Case 2: If I have ...
Amitabh's user avatar
  • 60.4k
41 votes
9 answers
25k views

Automate Deployment for Web Applications? [closed]

My team is currently trying to automate the deployment of our .Net and PHP web applications. We want to streamline deployments, and to avoid the hassle and many of the headaches caused by doing it ...
Sam Wessel's user avatar
  • 8,850
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 ...
Brett Ryan's user avatar
  • 27.9k
37 votes
1 answer
69k views

Clear the .NET-downloaded application cache without Mage?

I have a .NET application that I distribute using ClickOnce and I make available online only. How do I clear the download cache from a users' machine that doesn't have Visual Studio installed?
isorfir's user avatar
  • 771
36 votes
13 answers
46k views

Running .net based application without .NET Framework

Is there a way to run .net based applications without .net framework installed. Is there a way to do this. Is there a software that can achive this. Commercial software is also possible. Added: Has ...
crauscher's user avatar
  • 6,598
33 votes
7 answers
30k views

Instance Failure in asp.net

I have a web application that is working perfectly in my system. However, when I copied it to another system, I couldn't login to the application. There is an error: Server Error in '/' Application....
user85511's user avatar
  • 533
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....
JoelFan's user avatar
  • 38.2k
30 votes
2 answers
46k views

Visual Studio publish in debug Vs Release mode

I know the difference between debug and release mode BUILD. But I have a small doubt, does it make any difference on what mode I select while publishing the application thru Visual studio?
pramodtech's user avatar
  • 6,400
29 votes
4 answers
21k views

Custom solution configuration not showing up in Visual Studio 2010

I added a solution configuration called 'Staging'. It does show up on the drop down in VS, but not in the Configuration Manager in 'Package/Publish Web' screen. On this screen, the ones I see in the ...
Nick's user avatar
  • 7,505
28 votes
2 answers
25k views

How to deploy .Net application to heroku [closed]

I do not see much help when it comes to deploying .Net app to Heroku. So, how to deploy .Net application to Heroku?
Nick Kahn's user avatar
  • 20k
26 votes
2 answers
10k views

Deploying PDB Files in Release

I have my CI server setup to build and deploy all of my environments including my production environment. From what I can tell my setup for all of my project files and CI settings are the same between ...
Hungry Beast's user avatar
  • 3,706
25 votes
8 answers
10k views

ASP.NET MVC on IIS6

Where can I find some good pointers on best practices for running ASP.NET MVC on IIS6? I haven't seen any realistic options for web-hosts who provide IIS7-hosting yet. Mostly because I don't live in ...
Seb Nilsson's user avatar
  • 26.4k
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 ...
3oon's user avatar
  • 365
21 votes
5 answers
9k views

Strategies for updating or versioning web services?

I'm interested to hear the best practices on how different versions of web services are handled. To clarify, if you've got some web methods exposed as a web service, then you want to add a feature/...
Mat Nadrofsky's user avatar
20 votes
4 answers
8k views

How do I turn a Mono .exe into a bundle for OS X?

I have an app that was developed for Windows but runs fine on MacOS under mono without any modifications (yay!). However, since it's an exectutable, OSX doesn't recognize it as a native file type, ...
Jason Champion's user avatar
19 votes
2 answers
25k views

How do I publish a Asp.NET web application using MSBuild?

I am trying to publish an Asp.net MVC web application locally using the NAnt and MSBuild. This is what I am using for my NAnt target; <target name="publish-artifacts-to-build"> <msbuild ...
Xian's user avatar
  • 76.4k
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
René Stalder's user avatar
18 votes
8 answers
5k views

Build an installer for .NET app that can run on Windows and OS X?

I am surprised I could not find this question already asked, so if I simply missed it please notify promptly. I need to write a very small, fairly simple application in .NET that will be downloaded by ...
Rex M's user avatar
  • 143k
18 votes
4 answers
5k views

ClickOnce de-signs our executable and says "Unknown Publisher"

We are developing an application to be deployed via ClickOnce. We have a VeriSign code signing certificate that we are using to sign our application (via signtool.exe post-build) and our ClickOnce ...
Ana Betts's user avatar
  • 74.4k
18 votes
5 answers
29k views

How to conditionally deploy an app.config based on build configuration?

I have three custom build configurations { Dev, Qs, Prd }. So, I have three app configs { Dev.config, Qs.config, Prd.config }. I know how to edit the .csproj file to output the correct one based on ...
Anthony Mastrean's user avatar
18 votes
2 answers
825 views

Correct way of updating a RemoteAPP application with NGEN

We have a Windows2008R2 RemoteAPP .NET 4.5 application NGEN-ed on the RDS server, with approx. 300 concurrent users for the 3-host NLB cluster. The application is under active development and the ...
user1029848's user avatar
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 ...
Art and Artistic artandartisti's user avatar
15 votes
5 answers
27k views

does .Net 4.5 include .Net 4.0

I am developing a C# desktop application using Winforms. I created an installation strategy using visual studios click once installation tool. Luckily it provides clients to detect, download and setup ...
Tolga Evcimen's user avatar
15 votes
7 answers
8k views

major.minor.build.revision versioning style vs year.month.day.whatever versioning style

Is there any reason to use one versioning style over the other for .NET assemblies???? I'd like to know if there are any advantages/disadvantages in using either style besides taste.
angrifel's user avatar
  • 734
15 votes
3 answers
3k views

Embed pdb into assembly

I want my application to be distributable as a single .exe file but I want to be able to get nice error reports with source code line numbers (the application simply sends email with exception....
Konstantin Spirin's user avatar
14 votes
1 answer
5k views

What are differences between Docker and Octopus Deploy

I have been using Octopus Deploy for sometime now just to deploy a web application onto an AWS EC2 instance. I am aware that Octopus Deploy is .NET specific and the learning curve is quite easy when ...
floormind's user avatar
  • 1,958
14 votes
4 answers
24k views

Do I have to install sql server on each client if my software uses it?

If we develop some software in c# (or basically .Net), we don't install visual studio to any client. The client just have to have required .Net framework (1.0, 1.1, 2.0, 3.0 etc) installed and we are ...
Razort4x's user avatar
  • 3,386
14 votes
2 answers
4k views

Clickonce deployment equivalent for Dotnet core applications

We have a dotnet core console application which we want to use ClickOnce deployment. Mainly every time the user runs the application, it should check for update and update itself. This was available ...
Baga's user avatar
  • 1,402
13 votes
7 answers
17k views

Alternative to HttpUtility for .NET 3.5 SP1 client framework?

It'd be really nice to target my Windows Forms app to the .NET 3.5 SP1 client framework. But, right now I'm using the HttpUtility.HtmlDecode and HttpUtility.UrlDecode functions, and the MSDN ...
Domenic's user avatar
  • 112k
13 votes
7 answers
21k views

global.asax works on local computer but not after i publish to server

How can I get my global.asax file to publish to our ftp site? I have added a global.asax file to my project (using asp.net with c# from vs2010) which works great on my local machine. Then when I ...
Letseatlunch's user avatar
  • 2,479
13 votes
8 answers
6k views

windows automatic software updates

What are some good solutions for handling automatic web based software updates for windows forms projects? I am aware of microsoft one-click, but am not interested in it at this time.
user avatar
13 votes
5 answers
14k views

How to initiate an uninstall of a ClickOnce app, from within the app?

Can I reliably initiate the un-installation of a ClickOnce app, from within the app? In other words, I want to give the user a big "Uninstall Me Now" button on one of the forms. When a user clicks ...
dwolvin's user avatar
  • 247
13 votes
4 answers
5k views

How are you using the Machine.config, or are you?

For ASP.Net application deployment what type of information (if any) are you storing in the machine.config? If you're not using it, how are you managing environment specific configuration settings ...
user avatar
13 votes
2 answers
9k views

Passing URL parameters to a ClickOnce application in any browser

I have a ClickOnce application, and I need the ability to pass URL parameters to it. For example, a user could click a URL of the form "http://foo.bar/MyApp.application?flavor=grape", and this will ...
Bugmaster's user avatar
  • 1,070
13 votes
5 answers
32k views

Clickonce signed application fails with "has a different computed hash than specified in manifest". Mage fails to resolve issue

I've been really struggling with this one for days. I've seen other posts like ClickOnce Deployment Error: different computed hash than specified in manifest, but the solutions do not seem to work ...
TheFIXGuy's user avatar
  • 181
12 votes
4 answers
17k views

How to deploy DevExpress to server?

Hello I am needing to deploy a project using DevExpress controls to an IIS 6.0 server. The project loads fine and until I add in the DevExpress controls. When trying to load the site I get the error ...
Earlz's user avatar
  • 63.2k
12 votes
2 answers
11k views

Embedding/deploying custom font in .NET app

Is there an official way to distribute (deploy) a specific font with a .NET application? We have a (public domain) "LED font" that prints numbers with the retro LED instrumentface look. This is a ...
Swingline Rage's user avatar
12 votes
1 answer
3k views

Should I deploy Interop.x.dll files with .NET application?

We have a .NET app that consumes COM-objects in different DLLs, also used in the VB6 part of our app. When referencing a COM library, Visual Studio 2012 creates an Interop.x.DLL and references that ...
flipdoubt's user avatar
  • 14.2k
12 votes
2 answers
3k views

SQL SMO assemblies not being deployed when publishing

I've got a little problem regarding the deployment of a number of assemblies related to SMO. I have the following 5 references in my project: Each one is a .dll in a libraries folder which is where ...
Troy Hunt's user avatar
  • 20.4k

1
2 3 4 5
21