我的申请工作正常(仍处于发展阶段)。基于VS2012和2008R2构建。我已将编辑器控件添加到表单中。这显示正常,然后我尝试自定义工具栏。然后工具栏没有在浏览器中显示,但在VS中很好。我决定重新安装ajaxtoolkit;通过金块包来做到这一点。现在我在VS aspx页面中看到了这个错误:
Could not load file or assembly 'AjaxMin, Version=5.2.5021.15808, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies.
这就是我在web.config中所拥有的:
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.Services.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID">
<controls>
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit"/>
</controls>
</pages>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="AjaxMin" publicKeyToken="21ef50ce11b5d80f" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-5.2.5021.15808" newVersion="5.2.5021.15808"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
尝试在网络中查找并找不到任何解决方案。
当我在VS中打开AjaxMin.dll时,产品版本是4.97.4951.28478。
答案 0 :(得分:1)
我把版本号更改为“4.9 .......”,现在工作正常。