Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: DotNetNuke ASP Error  (Read 9448 times)

0 Members and 1 Guest are viewing this topic.

sajugovind

  • Guest
DotNetNuke ASP Error
« on: July 19, 2014, 09:00:55 pm »
I have DotNetNuke Site, it showing teh below error.

Code: [Select]
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

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,