clickonce

ClickOnce installing old assemblies from cache

Hi, I'm using ClickOnce for installing MyApp written in C#. Everything worked fine till last update after which start of MyApp ends with error saying "Could not load file or assembly MyAssembly... HRESULT: 0x80131040". After some research I've found that there is an old version of MyAssembly located in MyApp's ClickOnce cache folder (...

ClickOnce, SQLExpress and predicting the Name

I have a winform app that will need to install SQLExpress with it. How can I predict what the SQL instance will be called so that my connection strings will all still work. ./SQLEXPRESS? username/SQLEXPRESS? or something else entirely? Thanks! ...

How to automatically rename the "Application Files" folder in a ClickOnce deployment

We're currently using Visual Studio to build our ClickOnce deployment packages, but we'd like to rename "Application Files" because the webserver we're using does not support spaces. We've found that if we go into the .application file directly we can modify the path that is being pointed to, and we can also rename the folder manually. ...

Security Exception on WindowsIdentity.GetCurrent()

Click Once deplyment. Application runs fine in VS2008. When running the deployed app throws exception on: WindowsIdentity.GetCurrent() Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Click Once security settings: f...

Ways to speed up the startup of a ClickOnce application

I have a VS2005/c# ClickOnce application that gets all its data from a Web Service. I've gotten the app tuned where it feels pretty snappy to the users, even though it has to go and fetch data from the web service for almost everything. However, the startup is still pretty sluggish. It seems like it takes a while to generate the first...

Remove ClickOnce from a WinForms app

I have a WinForms application that was going to use ClickOnce. But it turns out ClickOnce won't work for my application, so I'd like to remove it. Only...there doesn't seem to be an obvious way to do this. There's no "Un-ClickOnce" button. Does anybody know what steps I need to take to get my app to be like it was before ClickOnce in...

Serialization Assembly. Is it needed or not?

I have a .net 2.0 c# ClickOnce app and it connects to its data via Web Services. I've been told that one way to potentially speed up the application is to generate a serialization assembly beforehand. I have several questions on this front. The default setting to whether to generate a serialization assembly is Auto. What criteria doe...

Why does VS.NET attempt to include Microsoft.Windows.Design.Extensibility for WPF and ClickOnce?

I built a WPF application in VS.NET 2008 using ClickOnce deployment. It ran great on any machine that had VS.NET installed, but my business users received an error: "Unable to install or run the application. The application requires that assembly Microsoft.Windows.Design.Extensibility Version 3.5.0.0 be installed in the Global Assembly...

Click-Once install .NET Framework over and over

The following dialog window keeps popping on my computer when starting "Click-Once" published application from Internet URL: [Microsoft .NET Framework Setup] - Would you like to download and install the Microsoft .NET Framework? The content you are trying to access requires the Microsoft .NET Framework. Would you like to download and i...

How can ClickOnce change the app.config from development to deployment one?

I have a development app.config and a deployment app.config. I need clickonce to change it on deployment.Is this posible to be done automatically? ...

ClickOnce in Release mode doesn't publish

Just doing some testing/prototyping with ClickOnce. Does anyone know why I can publish with CLickOnce when its set to 'debug' mode but not when its set to 'release' mode? I dont even get an error message for the latter. The output folder remains empty as nothing has happened. Once I switch to Debug mode and do the publishing everythin...

Adding Files to a Click Once Deployment

I've got an application that I'm moving over to ClickOnce and the app has a moderately sized data folder with hundreds of files that I need to inlcude in the deployment. The folder needs to be in the same place relative to the EXE after deployment. I've seen several suggestions on how to do this but there doesn't seem to be a agreed up...

How to deploy SQL and attach DB: With ClickOnce?

I need to deploy a winform app that uses multiple db's. I need to deploy them with my app as they interact locally. Can I use ClickOnce or should I be considering a different approach? I found a couple of examples for ClickOnce but they all assumed that the DB is included in the Solution, which isn't the case here. THis app used ...

.NET Framework 3.5 SP1 Language Pack ClickOnce package

Visual Studio 2008 SP1 doesn't provide any language pack prerequisite for the .NET Framework 3.5 SP1. My research results are: it should be easy to create a custom bootstrapper package that installs a language pack. I've downloaded the Bootstrapper Manifest Generator. It's really a nice tool to create custom packages, but I don't know w...

Clickonce publish - "The file 'default.htm' already exists in this Web site"

When I try to (re)publish my clickonce app, I am getting this: Failed to copy file 'E:*path*\default.htm' to '\*path*\default.htm'. Unable to add 'default.htm' to the Web site. The file 'default.htm' already exists in this Web site. There are three files with the same error message - default.htm, setup.exe and my app's .application fi...

Configuring the Package.xml for SQL Express ClickOnce Pre-Requisite install ?

I have a winform app being installed by ClickOnce and I need to be able to enable Remote Connections in sqlexpress by default. Also, I need to make sure the local user has access to the SQL instance. How do I edit the manifest file? My app is a part of a Merge Replication topology. I inherited the DAL and until I change it I cannot ...

ClickOnce App says requires .NET 3.5 when built using .NET 2.0

Help! I have a clickonce app built and published using .Net 2.0. This app has a number of .Net dll's all built using .Net 2.0. However when I publish the app, and try to install it I get a message saying that version 3.5 of .Net is required! I've tried my best to track down what component could require .Net 3.5, first by checking and r...

ClickOnce deployment for solution containing several projects

I have a solution containing several projects, as well as some projects that get copied into subfolders relative to the main application. Is there any possibility to deploy this using ClickOnce? Or should i create a seperate project including references to my built files just for clickonce deployment? ...

Report Builder 1.0, Explorer 8 and Vista

Hey I have a problem with running Report Builder (2008) 1.0 in Explorer 8 on Vista using ClickOnce. I've tried Explorer 7 on Vista and that works and Explorer 8 works fine on Windows XP. Error Message 401 is displayed (I'm not using IIS so I can't set authorisation there). Anyone who knows what to do? ...

.NET ClickOnce not installing prerequisite files?

I have a .NET project that uses Crystal Reports. The application is distributed using ClickOnce. Things work great if the user has Crystal installed on their computer. However, not all of the end users have Crystal Reports installed on their computers. These users are receiving the following error... "Unable to install or run the ap...