分析器错误无法加载AjaxControlToolkit [英] Parser Error Could not load AjaxControlToolkit

查看:417
本文介绍了分析器错误无法加载AjaxControlToolkit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

分析器错误信息:未能加载文件或程序集AjaxControlToolkit或它的一个依赖。该系统找不到指定的文件。

Parser Error Message: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.

是我见过之前这里的问题,但我找不到适合我的答案是:

Yes I've seen the questions before here but I can't find the right answer for me:

因此​​,这里的错误页面:(3号线高亮显示)

So here is the error page: (Line 3 is highlighted)

说明:该请求提供服务所需资源的分析过程中出现错误。请检查下列特定分析错误详细信息并适当地修改源文件。

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

分析器错误信息:未能加载文件或程序集AjaxControlToolkit或它的一个依赖。该系统找不到指定的文件。

Parser Error Message: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.

源错误:

Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="students.aspx.cs"   Inherits="students" %>
Line 2:  
Line 3:  <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %> 
Line 4:  
Line 5:  <!DOCTYPE html>

源文件:/aspsite/students.aspx行:3

Source File: /aspsite/students.aspx Line: 3

程序集加载跟踪:下列信息有助于确定程序集AjaxControlToolkit无法加载

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded.

这里是我检查,并试图通过其他问题建议:
中的托管服务器在ASP.NET 4.0中,4运行错误无法加载文件或程序集AjaxControlToolkit或它的一个依赖5

here is what I checked and tried suggested by other questions: ERROR Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies The hosting server is running on ASP.NET 4.0, 4,5

无法加载文件或程序集AjaxControlToolkit或它的一个依赖。该系统找不到的ajaxcontroltoolkit.dll指定的文件位于/ bin文件夹中,与所有其他包和东西(它工作在编译器模式VS虽然)

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified The ajaxcontroltoolkit.dll is in the /bin folder, allong with all the other packages and stuff (it works in compiler mode in VS though)

下面是我的web.config文件:

Here is my web.config file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
 <connectionStrings>
<add name="studentHousesConnectionString" connectionString="Data Source=ruudpc;Initial Catalog=studentHouses;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<customErrors mode="Off"></customErrors>
<compilation debug="true" targetFramework="4.0">
  <assemblies>
    <add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
  </assemblies>
</compilation>
 <pages>
  <controls>
    <add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
  </controls>
 </pages></system.web>
  <runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-2.1.0.4" newVersion="2.1.0.4" />
  </dependentAssembly>
</assemblyBinding>
</runtime>
 </configuration>

此外,我曾尝试与IIS 7.5,这里的students.aspx网站的作品,终于:)
我怀疑它是与主机,不知道是什么。

Also I have tried with IIS 7.5, here the students.aspx site works, finally :) I suspect it has something to do with the host, don't know what.

如果它是有用的:该网站的其余部分是工作得很好:PHP,。公司,样式..所有完美......但是,一个与ASP页面一直缠着我。
感谢您提前帮助。

If it is useful: The rest of the site is working perfectly well: php,.inc,stylesheet.. all perfect... but that one page with asp keeps bugging me. Thanks for the help in advance.

推荐答案

这样容易又那么难找:
就像我说的,在本地IIS网站是工作,所以我觉得很奇怪与web.config中的混乱。它的工作原理在本地,为什么不上托管网站:

So easy yet so hard to find: As I was saying, on a local IIS Web Site it was working, so I found it very strange to mess with web.config. It works locally, why not on a hosting Website:

解决方案:转到您的主机控制面板,在我的情况给应用程序选项卡,选择您的网站的文件夹,点击转换文件夹到应用程序。
pretty明显,现在你想起来了,在IIS管理器,你做同样的,我认为托管网站会自动完成。

Solution: Go to your hosting control panel, in my case to the application tab, select the folder of your website and click 'Convert Folder to Application'. Pretty obvious now you think of it, In the IIS manager you do exactly the same, I thought that the hosting website would do it automatically.

主机: http://somee.com
使用它来测试我的网站,他们提供了一个免费的托管有限(抱歉的目的,不是做广告吧)

Hosting: http://somee.com Using it for testing my websites, they offer a free limited hosting (sorry purpose is not to advertise it)

这篇关于分析器错误无法加载AjaxControlToolkit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆