Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conflicts between different versions of the same assembl
Message
From
17/09/2010 08:24:40
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01480863
Message ID:
01481576
Views:
22
>>>>>>>Hi,
>>>>>>>
>>>>>>>I've been experimenting with Web, WPF and Winforms User Interfaces for a project. Now that I've added the Winforms project to my solution (which has a WPF and a Web UI project as well) I get this warning:
>>>>>>>
>>>>>>>Found conflicts between different versions of the same dependent assembly.
>>>>>>>
>>>>>>>How do I work out which ones are conflicting?
>>>>>>>
>>>>>>>Maybe this is also related to why my error messages show that I am using .NET 2.0 in the Web project, when I have the projects set to use .NET 3.5?
>>>>>>
>>>>>>No ideas from anyone? :(
>>>>>
>>>>>I have run into this before. It can be a couple different things and usually takes looking for the extra assembly or reference. Make sure you don't have any extra assemblies laying around in your bin folder. Also the web.config file may have a old reference in there.
>>>>>Tim
>>>>
>>>>
>>>>How do I know what an "extra assembly" is? Could the old reference be in the app.config as well?
>>>
>>>Yes,
>>>And if you look in the bin folder where your application is stored you would see the *.dll files in there. If there is an older mm dll file in there, just delete it out.
>>>Tim
>>
>>I don't see anything that looks strange.
>>
>>1. What do you mean by an "extra assembly"?
>>
>>2. What do you mean by an "older mm dll"? Older than what?
>
>Frank,
>
>You are looking for something like one line referencing mm .net 2.0 and another referencing mm .net 3.5 in any of the config files. Also, in your solution, you want to make sure that you don't have a reference to OakLeaf.MM2008.Interfaces and another to OakLeaf.MM2006.Interfaces or something like that. You can only have one mm .net version referenced in your solution.
>It just takes slogging through all the different places those references can be. Good luck.

Thanks Linda,

here's what I did: I opened Web.config in my Web UI project and searched for "OakLeaf." and found these items:
        <add assembly="OakLeaf.MM2008.Framework, Version=3.6.0.0, Culture=neutral, PublicKeyToken=511BD18E16C7F771" />
        <add assembly="OakLeaf.MM2008.Interfaces, Version=3.6.0.0, Culture=neutral, PublicKeyToken=2312FEFB461DBB0E" />
        <add assembly="OakLeaf.MM2008.WebForms, Version=3.6.0.0, Culture=neutral, PublicKeyToken=E35DC9DDAD261220" />

        <add tagPrefix="mm" namespace="OakLeaf.MM.Main.Web.UI.WebControls" assembly="OakLeaf.MM2008.WebForms, Version=3.6.0.0, Culture=neutral, PublicKeyToken=e35dc9ddad261220"/>
In my Winforms app.config I found no reference to "OakLeaf." Neither did I find anything in the app.config for my WPF UI project. Nor in the BO project's app.config.

Is this where I should be looking and what I should be looking for?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform