Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: Odd Compile Issue [28006]

$
0
0
Not sure whether this is an issue or not, but sometimes I get this warning from my build:

The following assembly has dependencies on a version of the .NET Framework that is higher than the target and might not load correctly during runtime causing a failure: AjaxControlToolkit, Version=15.1.4.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e. The dependencies are: System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. You should either ensure that the dependent assembly is correct for the target framework, or ensure that the target framework you are addressing is that of the dependent assembly.

What makes this odd is that:

1) I don't encounter it all the time. e.g. if I "clean" my build, then do a "rebuild all" I don't normally see it (but sometimes I do).

2) my applications web.config has these lines in it:

<compilation targetFramework="4.5.2">
<httpRuntime targetFramework="4.5.2"/>

Both of which (in my opinion) meet the requirement that "the dependent assembly is correct for the target framework" (i.e. because 4.5.2 is higher than the System.Design Version=4.0.0.0 that it is complaining about).

Anyway's, just wondering if anybody else has encountered this (as I don't really want my release build fooming on my live server).

Thanks

Chris
Comments: Right, I have finally managed to write some code using System.Reflection and AssemblyName.GetReferencedAssemblies() so that I can trace out "what's going on" with my dependencies. This is what I have found (I have only included what I feel is relevant): ----------- Assembly: AjaxControlToolkit, Version=15.1.4.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e ++++Referenced Assembly: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ++++Referenced Assembly: System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ++++Referenced Assembly: System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ++++Referenced Assembly: System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ++++Referenced Assembly: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ++++Referenced Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ++++Referenced Assembly: System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ++++Referenced Assembly: System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ++++Referenced Assembly: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ++++Referenced Assembly: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ++++Referenced Assembly: System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ----------- This is obout controls dll (which my site uses for one part) ... Assembly: obout_ComboBox, Version=4.0.8.0, Culture=neutral, PublicKeyToken=8921cd007946710d ++++Referenced Assembly: mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ++++Referenced Assembly: obout_Interface, Version=4.0.10.0, Culture=neutral, PublicKeyToken=d5dff6913a9d6649 ++++Referenced Assembly: System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ++++Referenced Assembly: System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Assembly: obout_Interface, Version=4.0.10.0, Culture=neutral, PublicKeyToken=d5dff6913a9d6649 ++++Referenced Assembly: mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ++++Referenced Assembly: System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ++++Referenced Assembly: System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ++++Referenced Assembly: System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ----------- BUT THIS SEEMS ODD (I presume a "temporary asp.net build dll" - there's two System.Web's (one Version=4.0.0.0 AND one Version=2.0.0.0)): I WONDER IF THIS COULD BE CAUSING THE WARNING? Assembly: App_Web_gmxtl3qn, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null ++++Referenced Assembly: App_Code.sw8ctmw6, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null ++++Referenced Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ++++Referenced Assembly: AjaxControlToolkit, Version=15.1.4.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e ++++Referenced Assembly: obout_ComboBox, Version=4.0.8.0, Culture=neutral, PublicKeyToken=8921cd007946710d ++++Referenced Assembly: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ++++Referenced Assembly: App_global.asax.uffyybnt, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null ++++Referenced Assembly: System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ++++Referenced Assembly: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ++++Referenced Assembly: System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 ++++Referenced Assembly: System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 ++++Referenced Assembly: System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ----------- THUS I guess my question to you is will the AjaxControlToolKit work correctly in a project that is referencing BOTH "System.Web, Version=2.0.0.0" AND "System.Web, Version=4.0.0.0"? (just because the two dependant dll's [in bin folder] are from different versions of asp.net). NOTE: I have not checked whether there is a "newer version" of the obout_ComboBox yet (e.g. that uses "System.Web, Version=4.0.0.0").

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>