Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, November 8, 2012 10:44 AM
Actually since .net framework 2.0 i have been using my project.simillarly in that i am using mysql 5.0 and telerik controls 3.5.while i was hosted in my app through the vs2008 it should not give any error.but now i am migrating to vs2010.in vs2010 i build my application and host to iis means it shows this error as
"Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference".
i saw the many reference to internet.
I Tried these things
1.Copy C:\Windows\Microsoft.NET\Framework\v4.0.30319 system.web.extension.dll and system.web.extension.design.dll to C:\Windows\Microsoft.NET\Framework\v2.0.50727.
2 hide the assembly <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> from web.config
3.check with mysql 6.4 and telerik 3.5
4.check with mysql 5.0 and telerik 2.0
5.Check with mysql 5.0 and telerik 3.5
But in one of its above cases,the some of pages worked well and some of pages are not worked.anybody have an idea?.please let me know if anybody knows solution.
All replies (2)
Thursday, November 8, 2012 10:38 PM âś…Answered
I think you are using .net framework 2.0/3.5 but referring to .net 4.0 dll, just right click project in solution explorer click properties, in application section change target framework to 2.0/3.5.
You may try manually add the assembly see if works,
<add assembly="AjaxControlToolkit, Version=4.1.51116.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
And change other assembly's versions to 4.0.0.0 see if it works.
Similar thread -
http://forums.asp.net/p/1605823/4095937.aspx
http://forums.asp.net/t/1843230.aspx/1/10
Thursday, November 8, 2012 12:29 PM
Hi,
Copy system.web.extension.dll and system.web.extension.design.dll to the Bin folder of your website. Also Copy AjaxToolkit dll to the Bin folder and try again.