Asked by:
Configuration Error

Question
-
User-1499457942 posted
Hi
I am getting this error . I am making some changes in Old Project & now opening in Visual Studio 2012.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
Source Error:
Line 57: <add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> Line 58: <add assembly="System.Web.Mobile, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> Line 59: <add assembly="*"/> Line 60: <add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/> Line 61: <add assembly="System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
Source File: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Config\web.config Line: 59
Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded.Below is Web.Config File . I am making some changes in Old Project & now opening in Visual Studio 2012.
<configuration> <connectionStrings> <add name="ConnectionString" connectionString="Data Source=test;Initial Catalog=Test; User ID=sa;Password=test" providerName="System.Data.SqlClient"/> </connectionStrings> <system.web> <customErrors mode="Off"/> <httpModules> <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" /> </httpModules> <authentication mode="Forms"> <forms name="abc" loginUrl="Login.aspx"/> </authentication> <httpRuntime maxRequestLength="1048576" executionTimeout="3600"/> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules> <remove name="ApplicationInsightsWebTracking" /> <add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" /> </modules> </system.webServer> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.6.8.0" newVersion="2.6.8.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration>
Thanks
Thursday, June 21, 2018 5:05 AM
All replies
-
User1724605321 posted
Hi JagjitSingh,
What is your .net version and Ajax control toolkit version ? The minimum supported .NET Framework version for the AJAX Control Toolkit is 4.0: https://github.com/DevExpress/AjaxControlToolkit/wiki#system-requirements .You may look for older versions of the toolkit at here . Please refer to below threads which discuss same topic :
https://stackoverflow.com/a/12812934/5751404
Best Regards,
Nan Yu
Thursday, June 21, 2018 7:31 AM -
User-1499457942 posted
Hi
I am using .net 4.5 & Visual Studio 2012. I am not using Ajax anywhere
Thanks
Thursday, June 21, 2018 8:29 AM -
User1724605321 posted
Hi JagjitSingh,
Please check/search whether you used the ajaxcontroltoolkit in your application and do you have AjaxControlToolkit.dll in your bin directory .
Best Regards,
Nan Yu
Friday, June 22, 2018 2:20 AM