Windows > WebsitePanel
DotNetNuke ASP Error
(1/1)
sajugovind:
I have DotNetNuke Site, it showing teh below error.
--- Code: ---System.Web.Configuration.ScriptingAuthenticationServiceSection cannot be cast to System.Web.Configuration.ScriptingAuthenticationServiceSection. Type A originates from 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll'. Type B originates from 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code
--- End code ---
From the error we can understand it is because of version change of System.Web.Extensions
We can fix the issue by changing single line on web.config.
Search for the line "<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>" on web.config and change it to as below:
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="4.0.0.0"/>
Thank you,
Navigation
[0] Message Index
Go to full version