PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Assembly missing in GAC after Publish?

Reply

Assembly missing in GAC after Publish?

 
Thread Tools Rate Thread
Old 17-06-2008, 09:49 AM   #1
Pieter
Guest
 
Posts: n/a
Default 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


  Reply With Quote
Old 17-06-2008, 10:15 AM   #2
Pieter
Guest
 
Posts: n/a
Default Re: Assembly missing in GAC after Publish?

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" <pieterNOSPAMcoucke@hotmail.com> wrote in message
news:%23%233wfcF0IHA.3968@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
>
>



  Reply With Quote
Old 17-06-2008, 10:43 AM   #3
kimiraikkonen
Guest
 
Posts: n/a
Default Re: Assembly missing in GAC after Publish?

On Jun 17, 12:15*pm, "Pieter" <pieterNOSPAMcou...@hotmail.com> wrote:
> 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.com> wrote in message
>
> news:%23%233wfcF0IHA.3968@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
  Reply With Quote
Old 17-06-2008, 02:24 PM   #4
Nick
Guest
 
Posts: n/a
Default Re: Assembly missing in GAC after Publish?

I would be careful with ClickOnce and large solutions containing many
projects. I found that in order to publish the solution I was deploying via
ClickOnce successfully I would have to perform a Clean on the solution, then
publish..

If I didn't do this it would end up publishing an out of date DLL and the
app just wouldn't work. VS has had these issues with building for quite
some time now with large solutions, it's very annoying.

"Pieter" <pieterNOSPAMcoucke@hotmail.com> wrote in message
news:OrxNBrF0IHA.2084@TK2MSFTNGP06.phx.gbl...
> 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" <pieterNOSPAMcoucke@hotmail.com> wrote in message
> news:%23%233wfcF0IHA.3968@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
>>
>>

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off