473,378 Members | 1,119 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Assembly missing in GAC after Publish?

Hi,

We're using ClickOnce alreaddy more than a year for a given applicaiton,
doing more than 50 publishes without any problem.

Yesterday we made a minor change to one of our components (let's say with
the name MyAssembly), and incremented it's version (AssemblyVersion: from
0.1.7.0 to 0.1.7.1). We did the Publish with ClickOnce, but when the users
know want to run the application they get this error:
"Unable to install or run the application. The application requires that
assembly MyAssembly Version 0.1.7.0
be installed in the Global Assembly Cache (GAC) first."
This is so weird, especially when knowing we had alreaddy inremented this
version number without any problems in the past.

Anybody has any idea? Your help will be really appreciated!
Thanks a lot in advance,
Pieter
Jun 27 '08 #1
4 2189
Aaargh never mind, I've found it:
What was actually happening was soem type of dll hell :-)
Another component in the project was referencing the same assembly, but did
it with a compiled version, not the source of the project. so when doing the
publish there was some conflict between the old one and the new one...

This conflict should be more visible in the output window when doing a build
:-)

"Pieter" <pi****************@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
Hi,

We're using ClickOnce alreaddy more than a year for a given applicaiton,
doing more than 50 publishes without any problem.

Yesterday we made a minor change to one of our components (let's say with
the name MyAssembly), and incremented it's version (AssemblyVersion: from
0.1.7.0 to 0.1.7.1). We did the Publish with ClickOnce, but when the users
know want to run the application they get this error:
"Unable to install or run the application. The application requires that
assembly MyAssembly Version 0.1.7.0
be installed in the Global Assembly Cache (GAC) first."
This is so weird, especially when knowing we had alreaddy inremented this
version number without any problems in the past.

Anybody has any idea? Your help will be really appreciated!
Thanks a lot in advance,
Pieter


Jun 27 '08 #2
On Jun 17, 12:15*pm, "Pieter" <pieterNOSPAMcou...@hotmail.comwrote:
Aaargh never mind, I've found it:
What was actually happening was soem type of dll hell :-)
Another component in the project was referencing the same assembly, but did
it with a compiled version, not the source of the project. so when doing the
publish there was some conflict between the old one and the new one...

This conflict should be more visible in the output window when doing a build
:-)

"Pieter" <pieterNOSPAMcou...@hotmail.comwrote in message

news:%2******************@TK2MSFTNGP04.phx.gbl...
Hi,
We're using ClickOnce alreaddy more than a year for a given applicaiton,
doing more than 50 publishes without any problem.
Yesterday we made a minor change to one of our components (let's say with
the name MyAssembly), and incremented it's version (AssemblyVersion: from
0.1.7.0 to 0.1.7.1). We did the Publish with ClickOnce, but when the users
know want to run the application they get this error:
"Unable to install or run the application. The application requires that
assembly MyAssembly Version 0.1.7.0
be installed in the Global Assembly Cache (GAC) first."
This is so weird, especially when knowing we had alreaddy inremented this
version number without any problems in the past.
Anybody has any idea? Your help will be really appreciated!
Thanks a lot in advance,
Pieter- Hide quoted text -

- Show quoted text -
Hi,
If you need to play with GAC manually, you can also refer to this
article:
http://support.microsoft.com/kb/315682

Thanks,

Onur Güzel
Jun 27 '08 #3
Hi Pieter,

I have been using Click Once for nearly 3 years (since beta) without any
problems. When I make a change to an application and publish this
change - I increment the project in 3 places: in the Application tab of
Project properties I click on the Assemly Information button where I
increment the assembly version number and the file version number. Then
- in the Publish tab I increment the numbers that I have been tracking
(for me it has only been the revision number. So in all 3 locations all
the numbers match. This may not be the intended way, but I have not had
any problems doing it this way.

Another thing you can do is to go to the server to the directory where
all assemblies for your application get published and delete these
subdirectories and all their contents and then start the publishing
process all over again. The only thing is that you will have to
uninstall your application from all workstations using it first so that
they will get the new assembly.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jun 27 '08 #4
Hi Rich,

Changing version numbers manually like that would definitely solve that
problem, but is much better being done automatically as it removes human
error from the equation, i.e. forgetting to update version numbers, it's a
gripe of mine.

I use automatic version numbers by using the wild card char...

Assembly Version,

[1] [0][*] [ ]

Then I only need to change major / minor as necessary, so it can be
ignored for quick changes. But then VS isn't so reliable with keeping
everything uptodate in my experience anyway :(

Nick.

"Rich P" <rp*****@aol.comwrote in message
news:eb**************@TK2MSFTNGP03.phx.gbl...
Hi Pieter,

I have been using Click Once for nearly 3 years (since beta) without any
problems. When I make a change to an application and publish this
change - I increment the project in 3 places: in the Application tab of
Project properties I click on the Assemly Information button where I
increment the assembly version number and the file version number. Then
- in the Publish tab I increment the numbers that I have been tracking
(for me it has only been the revision number. So in all 3 locations all
the numbers match. This may not be the intended way, but I have not had
any problems doing it this way.

Another thing you can do is to go to the server to the directory where
all assemblies for your application get published and delete these
subdirectories and all their contents and then start the publishing
process all over again. The only thing is that you will have to
uninstall your application from all workstations using it first so that
they will get the new assembly.

Rich

*** Sent via Developersdex http://www.developersdex.com ***

Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Chango V. | last post by:
Hello, We seem to need a PIA for MSXML 4. According to the documentation, only the original publisher of a COM type library is supposed to create a .NET PIA. As far as I know, Microsoft hasn't...
4
by: Reinhold Schalk | last post by:
Hello, somewhere i've read that using strong names does assure two things: 1. Assure that the content of the assembly is not modified (that's ok in my opinion) 2. Assure that the assembly is...
2
by: EAI | last post by:
Is there a way to Install/UnInstall an assembly to GAC? Thanks!
2
by: George Durzi | last post by:
I have a dll that I use in several projects, that I placed in the Global Assembly Cache. This dll is references in each of my projects. This Dll is referenced by a type= declaration in my...
6
by: ewolfman | last post by:
Hi, I've read many posts in several news groups, but can't figure out how to publish my website. The specific error I'm getting (on the "successfully published website") is "Could not load the...
10
by: MarkAurit | last post by:
In vs.net 2005 web apps, now that we no longer have the assemblyinfo file, how do we set assembly information (such as version,description,company, etc)? Thanks, Mark
1
by: Andrew | last post by:
In ASP.NET 1.1 I used to retreive the version of my code-behind assembly using following syntax: Assembly.GetExecutingAssembly().GetName().Version The version was defined in AssemblyInfo.cs using...
0
by: sklett | last post by:
From the project designer when I click on the "Application Files" on the "Publish" tab there are some missing assemblies that are required. I can't find a way to explicitly specify a required...
18
by: Rainer Queck | last post by:
Hello NG, I realized, that my application won't start, if a referenced assembly is missing. Basically this is understandable, but since I destribute my applictaion without a setup, it can...
2
by: Pieter | last post by:
Hi, We're using ClickOnce alreaddy more than a year for a given applicaiton, doing more than 50 publishes without any problem. Yesterday we made a minor change to one of our components (let's...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.