References not updating

G

Guest

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
 
M

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
 
P

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top