Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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****************************************


XML
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
Posted

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[^]
 
Share this answer
 
v2
Comments
Nilesh Ranjan 27-Feb-13 8:15am    
I am using Version 4.0
Anuja Pawar Indore 27-Feb-13 8:24am    
Have added the link for reference, as you need to check with IIS, .Net version and correct dll.
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900