Home All Groups Group Topic Archive Search About

References not updating

Author
23 Nov 2006 6:52 PM
Paul Miller
I am referencing another dll from within a class library and it seems to
allways be looking for an older build version of the reference.  I have tried
removing and re-adding the reference but to no avail.  Originally I was
referencing the dll and so tried adding the project and referencing that but
still no luck.  Any ideas?  If I use reflector on the assembly it tells me
the reference is the correct version, but I get an excpetion when executing
that it can not find version x (the old version)  Any ideas greatly
appreciated!

Many Thanks,

Paul

Author
23 Nov 2006 8:24 PM
Michael Nemtsev
Hello Paul,

PM> I am referencing another dll from within a class library and it
PM> seems to allways be looking for an older build version of the
PM> reference. 

How did u find out that u reference to the old dll?

PM> I have tried removing and re-adding the reference but to
PM> no avail.  Originally I was referencing the dll and so tried adding
PM> the project and referencing that but still no luck.  Any ideas?  If
PM> I use reflector on the assembly it tells me the reference is the
PM> correct version, but I get an excpetion when executing that it can
PM> not find version x (the old version)

What's the exeptions details?

Are u sure that you didn't change the path (in the config )of the assemblies
probing, and your dll is on the right place?

PM> Any ideas greatly appreciated!

Change if you have any old version of referenced assembly into GAC

---
WBR,
Michael  Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Author
24 Nov 2006 7:48 AM
Prester John
I suspect you are using VS 2003... Change the assembly version in the
AssemblyInfo.vb file to be fixed (1.0.0.2, e.g.) instead of wild carded
sections (*'s).

HTH,
Prester John

Show quote
"Paul Miller" <PaulMil***@discussions.microsoft.com> wrote in message
news:6EA49448-1303-4D33-B4AA-610739AD8464@microsoft.com...
>I am referencing another dll from within a class library and it seems to
> allways be looking for an older build version of the reference.  I have
> tried
> removing and re-adding the reference but to no avail.  Originally I was
> referencing the dll and so tried adding the project and referencing that
> but
> still no luck.  Any ideas?  If I use reflector on the assembly it tells me
> the reference is the correct version, but I get an excpetion when
> executing
> that it can not find version x (the old version)  Any ideas greatly
> appreciated!
>
> Many Thanks,
>
> Paul

AddThis Social Bookmark Button