clickonce

ClickOnce deployment error on upgraded .NET application

隐身守侯 提交于 2019-12-07 19:44:31
问题 I have a Windows forms application that was developed in Visual Studio 2005 and deployed to an IIS server via ClickOnce. I've upgraded to VS2008 so I decided to upgrade and redeploy the application (in test). I ran the upgrade wizard, manually changed the project's target runtime to 3.5, removed all of the old publish files from the deployment server, and published the application. I can launch it with no problem (i.e., "works on my machine"), but when others launch it they get an error.

c# deployment: install additional file in the installation directory

只谈情不闲聊 提交于 2019-12-07 17:33:46
问题 how to install additional file such as some excel or webpage shortcut in the installation directory so that my executable should be able to access that file? please help 回答1: In the solution explorer, right click on the file and go to properties. Set "Copy to output directory" to "Copy if newer". You may also need to set "Build action" to "Embedded resource" if it is not already. 回答2: Add the file to your project. Set the build action to "content". Set "copy to output directory" to "copy

Running a scanning app on a 64-bit machine via ClickOnce

夙愿已清 提交于 2019-12-07 16:23:49
问题 Okay, here's my setup. I have a c# app working perfectly on all 32-bit Windows XP-Vista-7 machine. I already have a verisign PFX to support the ClickOnce deployment and is using Atalasoft DotTwain 8.0 as the 3rd party scanner helper. When I publish my application, I choose "Any CPU" as the Platform target. When I try to make it run on a Windows 7 64-bit Home Premium, my application crashes after the installation. I tried re-publishing the work on a specific x64 platform but still failed. Any

What is the path to an installed ClickOnce application?

孤者浪人 提交于 2019-12-07 15:43:28
I wrote a "Hallo world" type Windows Forms application in C# to test authentication issues. I'm going to be running the eventual application from a server periodically, so I want to be sure I can get to the resources, and fix that before committing to the whole application. So, in Visual Studio 2010, I choose Publish.... It says "Where?", and I specify a folder on a shared file system. It says "How will your users install", and I say, "URL" or something like that. It says "Where", and I give it a URL in the same shared file system, different folder. All is right with the world.... Now, I

put build date in about box

a 夏天 提交于 2019-12-07 11:19:48
问题 I have a C# WinForms app with an About box. I am putting the version number in the about box using: FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location) .FileVersion This ends up giving me the Subversion revision number from which the executable was built. I would also like to get the date of the build into the About box. I tried: File.GetLastWriteTime(Assembly.GetEntryAssembly().Location) But that gives me the write date of the executable, which only corresponds to the

An error occurred while signing: Unknown error “-2147012894”

核能气质少年 提交于 2019-12-07 10:37:39
问题 I have .pfx certificate bought from https://www.globalsign.co.uk/. I've signed the ClickOnce manifest of my VSTO (Excel Add-In project type in Visual Studio) project with it and everything worked. After a month of use, I've tried to rebuilding my project (that used to work) and now it gives me an error: An error occurred while signing: Unknown error "-2147012894" The certificate is perfectly valid and not expired and signing manually like following works perfectly: SignTool sign /f mycert.pfx

Why does the ClickOnce Deployment installer run the application during installation?

强颜欢笑 提交于 2019-12-07 08:50:25
Why does the ClickOnce Deployment installer run the application during installation? Details: For an XNA 4.0 application I am prototyping it runs once. If you have Avast! installed and with its Deep Screen feature enabled, it will run twice (Avast! kills it and re-runs it). Note: This is similar to, but not the same as, Install ClickOnce without running . Please see that question for a solution to make it stop running the application. The answer is right here , you must use MageUI.exe. Here, I am only interested in understanding why it runs the application. What am I misunderstanding? 来源:

Clickonce , "Your Web browser settings do not allow you to run unsigned applications.!

为君一笑 提交于 2019-12-07 08:21:44
问题 We're trying to deploy an unsigned clickonce application. For some users this fails with the below error, while for others its no problem. This is probably a security setting somewhere, but we have been unable to find it. Any tips on how to allow this application to be installed (bar signing it ) PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3615 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3615 (GDR

Location of user files with a ClickOnce application

落爺英雄遲暮 提交于 2019-12-07 08:14:13
问题 I have a WinForms app that I am trying to deploy with ClickOnce. It consists of an executable and a dependent dll, plus a bunch of loose xml files in a folder called "Map". The xml files all seem to be present and correct in the generated clickonce package and are all included in the .manifest file. However, when I install and run, using the following code gives me a directory not found exception: string appPath = Path.GetDirectoryName(Application.ExecutablePath); string mapPath = Path

ClickOnce: BadImageFormatException when running x86 package on 64 bit windows

醉酒当歌 提交于 2019-12-07 06:47:19
问题 My .NET 2.0 application imports unmanaged 32 bit dll. The dll is loaded (first interop call happens) when user opens a file via a dialog within the application. When I deploy the application via clickonce with target platform "Any", users on 64 bit windows get BadImageFormatException when trying to open files from the application (at the moment the unmanaged dll is loaded). I understand this is due to incompabible bitness of the 64 bit process and the 32 bit unmanaged dll. I have redeployed