This is a migrated thread and some comments may be shown as answers.

Referenced Assemblies Conflict

1 Answer 220 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Clinton Gallagher
Top achievements
Rank 1
Clinton Gallagher asked on 01 Jun 2012, 03:58 AM
Web Site Won't Load - VS20120 Build > Build Web Site Goes Boom.

Error 58 Assembly 'Telerik.Web.UI, Version=2012.1.411.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'  

Error 59 Assembly 'Telerik.Web.UI, Version=2012.1.411.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4' uses 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' which has a higher version than referenced assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'  

// SYSTEM.CORE AND SYSTEM.WEB.EXTENSIONS IN THE GAC:

System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSI
System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL
System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL
System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL

// CONFIRMED ASSEMBLY INSTALLED IN THE GAC:
Telerik.Web.Design, Version=2012.1.411.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL

// DETERMINED WHICH VERSIONS AND SERVICE PACKES OF .NET ARE INSTALLED
http://msdn.microsoft.com/en-us/kb/kbarticle.aspx?id=318785

NET Framework Setup
v4 Client C:\Windows\Microsoft.NET\Framework64\v4.0.30319
v4 Full   C:\Windows\Microsoft.NET\Framework64\v4.0.30319


// ENTRIES IN WEB.CONFIG

<system.web>
...
<httpHandlers>
  <remove path="*.asmx" verb="*" />
  <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
  <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
  <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
  <add path="CaptchaImage.axd" verb="GET" type="MSCaptcha.CaptchaImageHandler, MSCaptcha" />
  <add path="Aspy.ashx" verb="GET, POST" type="ByteCarrot.Aspy.AspyHandler, ByteCarrot.Aspy" />
  <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
</httpHandlers>
<httpModules>
  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</httpModules>
</system.web>

<system.webServer>
...
<handlers>
  <remove name="WebServiceHandlerFactory-Integrated" />
  <remove name="ScriptHandlerFactory" />
  <remove name="ScriptHandlerFactoryAppServices" />
  <remove name="ScriptResource" />
  <remove name="ChartImageHandler" />
  <add name="MSCaptchaImage" path="CaptchaImage.axd" verb="GET" type="MSCaptcha.CaptchaImageHandler, MSCaptcha" preCondition="integratedMode,runtimeVersionv2.0" />
  <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  <add name="Aspy" path="Aspy.ashx" verb="GET, POST" type="ByteCarrot.Aspy.AspyHandler, ByteCarrot.Aspy" />
  <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
</handlers>
<modules>
  <remove name="ScriptModule" />
  <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>

I don't understand how to continue to resolve this conflict.

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 05 Jun 2012, 07:25 AM
Hello Clinton Gallagher,

Your web.config markup clearly shows that your website (application) targets .NET 35. Please remove any .NET 40 references and replace them with their 3.5 couterparts if needed. This also affects the Telerik dll's - you should be using their 3.5 versions. In case you want to develop with ASP.NET 40, first update your website to target that version and them perform the same operation (reference update) to point 40 assemblies.

I hope this helps.

Kind regards,
Martin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
General Discussions
Asked by
Clinton Gallagher
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or