无法加载文件或程序集' AjaxControlToolkit,Version = 15.1.3.0,Culture = neutral,PublicKeyToken = 28f01b0e84b6d53e'或其中一个依赖项。
以下是我的webconfig
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="ajaxControlToolkit" type="AjaxControlToolkit.AjaxControlToolkitConfigSection, AjaxControlToolkit" />
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.5.1">
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-15.1.2.0" newVersion="15.1.2.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<ajaxControlToolkit htmlSanitizer="AjaxControlToolkit.HtmlEditor.Sanitizer.DefaultHtmlSanitizer, AjaxControlToolkit.HtmlEditor.Sanitizer" />
</configuration>
答案 0 :(得分:1)
你有
<bindingRedirect oldVersion="0.0.0.0-15.1.2.0" newVersion="15.1.2.0" />
在您的Web.config中。删除它,因为它阻止v 15.1.3.0加载。
但我强烈建议您完全删除 runtime 部分。