473,473 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ClickOnce deployment problem

22 New Member
Hi all,

my application (C# WinForm .NET 3.5) is distributed via ClickOnce deployment. Application should check for updates on our company web. Problem comes when any part of application has reference to assemblies which are not installed (registered) on curent machine. In solution are some library projects which works with MS Office and therefore has referenced some MS Office libraries. If no MS Office (2000/2003/2007) is installed on machine, automatized update download fails:

"unable to install or run the application. The application requires assembly office version 12.0.0.0 be instaled in tge Global Assembly Cache first"

That makes application useless now, if user has no MS Office instaled. I tried to solve this problem on several forums and in generally I get one possible solution - copy MS Office dll’s and add them to application files. I doubt MS Office dll’s are redistributable free.

Is possible to choose which part of application will be installed with ClickOnce? I mean – user which has no Office installed wont install application extensions for work with Office and will avoid update problems.



Thanks

Lukas
Nov 12 '08 #1
7 4220
Plater
7,872 Recognized Expert Expert
I *think* you can do something with the "distribution groups" settings. I'm rather new to clickonce myself (only a few days) but I saw that you could put stuff in "groups". The defaults are like "always distribute" and "always exclude", but you could maybe investigate creating additional groups, and changing the dependancies?
Nov 12 '08 #2
LukasMalik
22 New Member
...at least you gave mi direction where to search :)

I use ClickOnce whole development (more than year) but this is first problem which was not solved by myself after few clicks...

I will be back in business if I force to ClickOnce deployment show user menu where will pick which - as you called that - groups will be installed.
Nov 12 '08 #3
Plater
7,872 Recognized Expert Expert
Are they like seperate projects in a single solution?
How do you have a program which can decide not to do part of itself?
Nov 12 '08 #4
LukasMalik
22 New Member
Are they like seperate projects in a single solution?
How do you have a program which can decide not to do part of itself?
I have solution with 24 projects. 1 is UI - Win Form project, other 23 are dll project referenced in first Win Form. One or two dll supports Office-related functions, which are useless if no Office version is installed. If they are called, COM Exception is thrown - there is missing reference to not existing library.

.NET doesn't load an assembly until it is used. It works exactly how it should work. Untill Office-related function is called, application works fine, and afther this "ilegall call" is thrown an COM Exception which is caught with Message like "You dont have installed Microsoft Office"

Problem comes during ClickOnce update. It does not allow to download this useless libraries and therefore update fails and no other project parts is downloaded.
Nov 12 '08 #5
Plater
7,872 Recognized Expert Expert
Ok, now if those DLLs, that are projects in your solution, don't exist, does your program still run or does it throw errors as well?
Nov 12 '08 #6
LukasMalik
22 New Member
Ok, now if those DLLs, that are projects in your solution, don't exist, does your program still run or does it throw errors as well?
If dont exist = are not present in app folder then yes. Program run until some of this DLL is needed to be used. That depends on user activity :)
Nov 12 '08 #7
Plater
7,872 Recognized Expert Expert
Ok so I think you can do that grouping thing.
Put the DLLs that want to use the Office stuff in a custom group.
I noticed in the update that you can tell it to download optional groups:

[code=c#]
using System.Deployment.Application;

if (ApplicationDeployment.IsNetworkDeployed)
{
ApplicationDeployment deploy = ApplicationDeployment.CurrentDeployment;
//deploy.DownloadFileGroup(groupname)
}
[code]

And on the same vein, you could use this:
deploy.IsFileGroupDownloaded(groupname)
to test if the DLL files were downloaded before trying to use those sections?

There is bound to be more usefull tidbits in that namespace you could use too
Nov 12 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
1
by: M O J O | last post by:
Hi, I've have searched google, but can't find a solution to my problem. Om my develloper machine, I use one app.config, but when I deploy, I need to deploy another app.config. The reason...
2
by: Alex Bögli | last post by:
Hi I have a rather advanced deployment scenario and wanted to know, if anyone has an idea how to accomplish that with ClickOnce: We are deploying a 3-tier application with a client connecting...
3
by: Ronald S. Cook | last post by:
We have a VS2005 Team setup and are developing a Windows app (smart client). We are in the cattle feeding business and have 10 distinct feedyards across the U.S. When we wish to deploy an update...
2
by: Jamey McElveen | last post by:
Hello, I would like to use ClickOne but we need to stagger our update process. Currently we are shipping cd's when it is time for an update. We stagger the release in waves of 250 each so our...
2
by: =?Utf-8?B?Sm9obiBC?= | last post by:
A windows forms 2.0 ClickOnce deployment fails when both SSL is enabled and "require client certificate" enabled on the IIS deployment web server. Can anyone assist with how to configure this...
4
by: Marc Gravell | last post by:
Repost from dotnet.general (no response), and OT but I hoped somebody might have a clue... I have a handful of ClickOnce installs that work fine almost everywhere... however, on some machines...
6
by: =?Utf-8?B?QW5kcmV3X2QxMjM=?= | last post by:
Here is my problem. I have an app that has over 9 web services. For years I had not issues with clickonce but now it looks like the build is missing XmlSerializers.dll.deploy. I did have this...
3
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
My clickonce app fails when the install button on the publish.htm page is clicked. User is prompted with a "Cannot Start Application" dialog. Details provided from the dialog are: PLATFORM...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.