Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have upgraded my application from .NET 3.5 to .NET 4.5.
All assembly references in web.config get migrated 4.0.0.0 but below 2 assemblies are showing in 2.0 and 3.5, is there any reason for this?

1) But below assembly reference under siteMap tag is still showing version 2.0.3600.0

XML
<add name="DefaultNavProvider" securityTrimmingEnabled="true" type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" siteMapFile="~/Default.sitemap"/>



2) Inside
XML
<system.webServer>

C#
System.Web.Handlers.ScriptModule
is showing version 3.5 as below

XML
<add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>



basically i don't want any dependency on 2.0 and 3.5 framework, my upgraded code should work independently only with 4.5 framework

What I have tried:

Tried to migrate form 3.5 to 4.5 multiple time
Posted
Updated 21-Oct-16 2:30am
v3

1 solution

Under project references for your project remove the old version, then add the new version.
 
Share this answer
 
Comments
Gaurav Thorath 20-Oct-16 7:38am    
In my project references all the assemblies mainly system.web which is mentioned for Sitemap it also showing version 4.0 but in config file version for sitemap and webhandler are showing 2.0 and 3.5 respectively

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900