PC Review


Reply
Thread Tools Rate Thread

Assembly versions conflict

 
 
Vadim Berman
Guest
Posts: n/a
 
      26th Jan 2004
Hello group,

It might be more IDE problem of MS Visual Studio, but maybe not. I have two
solutions, while one uses assemblies generated by the other. The source
solution compiles smoothly, but the destination sometimes issues errors. It
says that it cannot copy the assembly to the run directory because the
copied assembly version is older (the difference is usually the five last
digits). What's even stranger, the errors are about the assemblies from the
same solution, which I have linked as projects (and therefore, MSVS manages
the copy process automatically, which is reliable, right? :-) ). I tried
deleting all the assemblies and recompiling from scratch numerous times,
boots, restarting Visual Studio. Doesn't help.

I launched a search for every version of these shadow assemblies; I found
that Visual Studio keeps it in a special temporary files folder in Documents
and Settings; I also searched the GAC. They are not there!!!

Now, the program still runs even from the IDE, but I'm not sure which
version the darn monster runs. Anyone has an idea why this happens? Or maybe
I should reset some configuration files (there are no application config
files)? Help, I'm going nuts.


--
Vadim Berman
www.Power-Components.NET
-----------------------------------------
Powerful components for powerful applications


 
Reply With Quote
 
 
 
 
Mike Bird
Guest
Posts: n/a
 
      26th Jan 2004
When you add reference to a DLL to your project, it adds a reference to the
exact version of that DLL. When you build, it copies that DLL to your
output directory. If the DLL it copies is a newer version than what was
added to the project, you will get the version warning. The program will
run using the version that is in the project output directory. To remove he
warning, remove the DLL reference from your project,a nd re-add it so it
points to the latest version of the DLL.

All the above assmes that you haven't strongly named your DLLs.


"Vadim Berman" <(E-Mail Removed)> wrote in message
news:bv2r4b$1fs$(E-Mail Removed)...
> Hello group,
>
> It might be more IDE problem of MS Visual Studio, but maybe not. I have

two
> solutions, while one uses assemblies generated by the other. The source
> solution compiles smoothly, but the destination sometimes issues errors.

It
> says that it cannot copy the assembly to the run directory because the
> copied assembly version is older (the difference is usually the five last
> digits). What's even stranger, the errors are about the assemblies from

the
> same solution, which I have linked as projects (and therefore, MSVS

manages
> the copy process automatically, which is reliable, right? :-) ). I tried
> deleting all the assemblies and recompiling from scratch numerous times,
> boots, restarting Visual Studio. Doesn't help.
>
> I launched a search for every version of these shadow assemblies; I found
> that Visual Studio keeps it in a special temporary files folder in

Documents
> and Settings; I also searched the GAC. They are not there!!!
>
> Now, the program still runs even from the IDE, but I'm not sure which
> version the darn monster runs. Anyone has an idea why this happens? Or

maybe
> I should reset some configuration files (there are no application config
> files)? Help, I'm going nuts.
>
>
> --
> Vadim Berman
> www.Power-Components.NET
> -----------------------------------------
> Powerful components for powerful applications
>
>



 
Reply With Quote
 
Vadim Berman
Guest
Posts: n/a
 
      26th Jan 2004

Mike,

Thanks for the advice, but I tried it before - didn't help...

However, I found that there was another external DLL I've been linking from
the \bin subdirectory. Changing its location did the trick.

--
Vadim Berman
www.Power-Components.NET
-----------------------------------------
Powerful components for powerful applications


"Mike Bird" <birdm @ symbol . com> wrote in message
news:(E-Mail Removed)...
> When you add reference to a DLL to your project, it adds a reference to

the
> exact version of that DLL. When you build, it copies that DLL to your
> output directory. If the DLL it copies is a newer version than what was
> added to the project, you will get the version warning. The program will
> run using the version that is in the project output directory. To remove

he
> warning, remove the DLL reference from your project,a nd re-add it so it
> points to the latest version of the DLL.
>
> All the above assmes that you haven't strongly named your DLLs.
>
>
> "Vadim Berman" <(E-Mail Removed)> wrote in message
> news:bv2r4b$1fs$(E-Mail Removed)...
> > Hello group,
> >
> > It might be more IDE problem of MS Visual Studio, but maybe not. I have

> two
> > solutions, while one uses assemblies generated by the other. The source
> > solution compiles smoothly, but the destination sometimes issues errors.

> It
> > says that it cannot copy the assembly to the run directory because the
> > copied assembly version is older (the difference is usually the five

last
> > digits). What's even stranger, the errors are about the assemblies from

> the
> > same solution, which I have linked as projects (and therefore, MSVS

> manages
> > the copy process automatically, which is reliable, right? :-) ). I tried
> > deleting all the assemblies and recompiling from scratch numerous times,
> > boots, restarting Visual Studio. Doesn't help.
> >
> > I launched a search for every version of these shadow assemblies; I

found
> > that Visual Studio keeps it in a special temporary files folder in

> Documents
> > and Settings; I also searched the GAC. They are not there!!!
> >
> > Now, the program still runs even from the IDE, but I'm not sure which
> > version the darn monster runs. Anyone has an idea why this happens? Or

> maybe
> > I should reset some configuration files (there are no application config
> > files)? Help, I'm going nuts.
> >
> >
> > --
> > Vadim Berman
> > www.Power-Components.NET
> > -----------------------------------------
> > Powerful components for powerful applications
> >
> >

>
>



 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hebrew and English versions conflict =?Utf-8?B?eWFha292Ym4=?= Microsoft Outlook Calendar 0 8th May 2007 03:47 PM
Assembly Versions Joe Griffith Microsoft VB .NET 1 24th May 2005 09:48 AM
Assembly Versions ? Jm Microsoft VB .NET 5 26th Apr 2005 03:16 PM
Conflict with earlier versions .. ? Luc Microsoft Powerpoint 0 20th Sep 2004 10:08 AM
gac and assembly versions Steve Landis Microsoft Dot NET Framework 3 25th Nov 2003 03:25 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 PM.