clickonce

Application.Restart() + Single Instance conflict in windows application

匆匆过客 提交于 2019-12-06 12:27:13
问题 Hi Friends, I have a windows application where i controls single instance. When this application updates using clickonce, application will restart after applying updates. The application restarts but fails to continue as, IsFirstInstance = false condition. But Application.Restart() documentation says it shutdowns running app and creates new instance. Single instance class is given below: using System; using System.Diagnostics; using System.Runtime.Remoting; using System.Runtime.Remoting

WPF ClickOnce missed references

牧云@^-^@ 提交于 2019-12-06 10:53:45
问题 I have a WPF app that works with local SQLite and Entity Framework Core. I want to distribute my app using ClickOnce. Everything works fine when I run it using Visual Studio 2017. But app had a crash on a start when I used ClickOnce. The crash was so early so I couldn't even log the exception. After some time I found that in publish folder some dlls were missed. For example System.Runtime. All references are NuGet packages. Then I found that despite of I have a reference to the dlls in my

SQL Server CE extremely slow on some computers

那年仲夏 提交于 2019-12-06 09:26:35
I've built an app that uses SQL Server CE 4.0 by default, but can also use a separate SQL Server (SQL Server Express). I've deployed it to about 10 computers around the office and it works fine except on 2 of them: the VP and a QA guy, of course :-/ On these computers, the database accesses are taking around 30 seconds each! If I install SQL Server Express 2008 R2, and tell my app to use it instead, then it runs very fast. Both problem machines are WinXP SP3, but most of the working PCs are XP also. I'm using C#.NET 4.0 App uses private deployment of SQL Server CE via ClickOnce. I'm using

ClickOnce deployment error on upgraded .NET application

本小妞迷上赌 提交于 2019-12-06 07:31:27
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. Cannot continue. The application is improperly formatted. Contact the application vendor for assistance.

Installing SQL Server 2014 Express package as ClickOnce prerequisite

北城以北 提交于 2019-12-06 07:23:20
I'm using clickOnce and deploying an installer with it. I have tried various settings. Using SQL Server 2008 Express and SQL Server 2012 Express as prerequisite is all ok (I've dowloaded them and set the option of clickonce "download prerequisites from the same path of app"). Now I'm trying to do the same thing with SQL Server 2014 Express. Since the SQL Server 2014 Express package isn't alredy done line 2008 and 2012 versiones, I'm trying to create it. I have done and it seems to work, but while installing it gives error number -2054422506 . It is a very generic error and I don't understand

Signed ClickOnce app throwing 'Unknown Publisher' with Windows 10

▼魔方 西西 提交于 2019-12-06 05:37:07
问题 The vast majority of our business users run Windows 7, and our ClickOnce application installs, updates and runs as it should without any pop-up warnings. The same application is throwing up the following on Windows 10 Of course 'More info' appears to be part of the text rather than something you can click with 'Don't run' appearing to be the only option If you do click 'More Info' it states the publisher is unknown (although it displayed it just fine whilst updating!!!) The Code Signing

ClickOnce appref.ms argument

我与影子孤独终老i 提交于 2019-12-06 05:31:37
问题 I have a ClickOnce application that is available online or offline. The program takes an argument. When online I pass the argument on the URL like so "url?argument", and it works well. Offline I start a process with the startmenu link to the application. Is it possible to pass an argument to my application via this link? I guess I could somehow work out the location of the application file, but is there an alternative? 回答1: I was able to get this to work by referencing the app as "

Clickonce application not seeting AppSettings

时光毁灭记忆、已成空白 提交于 2019-12-06 05:15:19
I have a Full trust, online only, click-once application that relies on settings in the App.config --> appSettings collection. Once published, the first time the application is executed, the settings are read and everything works fine. If I close the application and run it again, the items that are in appSettings are no longer there and appSettings.Count is equal to 0. I have set the app.config as "Content" and to "Copy Always". Any Idea what could be causing the items in appSettings to disappear? or a way to get around this? Also, please note that the settings are only being read, and being

ClickOnce deployment CheckForDetailedUpdate throws an exception

丶灬走出姿态 提交于 2019-12-06 05:06:24
问题 I have an application that's running 24/7 without attendance. It's deployed via ClickOnce and needs to check and download updates by itself. It checks for updates at application startup and at scheduled time at night. When it does it on startup, it works perfectly fine. However, when it does it at scheduled time, it crashes. In both cases it's using exactly the same piece of code. It's running under Windows 7 and might have something to do with UAC. I'm thinking that maybe it cannot access

Automatically updating Compact Framework application code

跟風遠走 提交于 2019-12-06 03:33:02
问题 I've built a Compact Framework application to be used by delivery drivers. This runs on a SQL CE database and connects to a WCF service on a web server. I need a way to update the system when I release new versions. I'm hoping that I can install a new version of the WCF code in a new folder on the web server and then somehow trigger the mobile devices to update the local CF application and also connect to the new WCF service URL. So far I've found 2 frameworks: WmAutoUpdate http://github.com