无法加载文件或程序集“AjaxControlToolkit”或其依赖项之一。该系统找不到指定的文件。 [英] Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.

查看:156
本文介绍了无法加载文件或程序集“AjaxControlToolkit”或其依赖项之一。该系统找不到指定的文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我在服务器上托管了一个asp.net网络应用程序我在本地主机下面的机器人错误提及工作正常。我在Bin文件夹中使用了AjaxControlToolkit dll我在页面上收到此错误,无论我使用Ajax控件





******* *************************错误页面********************** ******************





hi Friends ,

I hosted one asp.net web application in server i am getting error mention below bot in local host its working fine. i used AjaxControlToolkit dll inside Bin Folder i am getting this error on page wherever i used Ajax controls


********************************error page below****************************************


Server Error in '/' Application.
Parser Error
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.

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

Source Error:


Line 1:  <%@ Page Title="" Language="C#" MasterPageFile="Admin.master" AutoEventWireup="true" CodeFile="AddResult.aspx.cs" Inherits="Admin_AddResult" %>
Line 2:
Line 3:  <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
Line 4:
Line 5:  <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


Source File: /apps/Admin/AddResult.aspx    Line: 3

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


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929

推荐答案

可能有两个问题

1.你遗失了dll

2.版本可能是一个问题,如果你使用2.0移动到3.5或更高。



编辑

参考这个

http://stackoverflow.com/questions/7695657/error-could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-depende [< a href =http://stackoverflow.com/questions/7695657/error-could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-dependetarget =_ blanktitle =新窗口> ^ ]

http://forums.asp。 net / t / 1046735.aspx / 1 [ ^ ]
There can be two problems
1. You are missing dll
2. Version can be a problem like if you are using 2.0 move to 3.5 or higher.

Edit
Refer this
http://stackoverflow.com/questions/7695657/error-could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-depende[^]
http://forums.asp.net/t/1046735.aspx/1[^]


多次没有维护引用你移动你的根文件夹,所以最好将AjaxControlToolkit文件夹保留在项目中。然后从正确版本的文件夹中引用dll文件,然后你就不会遇到这样的AjaxControlToolkit问题。
Many times the reference is not maintained when you move your root folder, so its better to keep the AjaxControlToolkit folder in the project. Then reference the dll file from that folder of the correct version, then you won''t get such AjaxControlToolkit problem.


这篇关于无法加载文件或程序集“AjaxControlToolkit”或其依赖项之一。该系统找不到指定的文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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