Solved

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

Posted on 2009-05-08
7
259 Views
Last Modified: 2013-12-29
I installed a Ajax Control Tool Kit  and wrote a simple code it works fine in local host but when i upload the application on the server i am getting an parser error like:

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:  <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Featuredhotels.ascx.cs" Inherits="Featuredhotels" %>
Line 2:  <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
Line 3:  <style type="text/css">
Line 4:  
 
Source File: /ajaxchains/Featuredhotels.ascx    Line: 2

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:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

 I have:
Installed Visual Studio 2008 on my PC
Installed .NET Framework 3.5 on the Web Server
Installed AJAX Control Toolkit on my PC

What is the problem?
0
Comment
Question by:PhaniSrinivas
  • 2
  • 2
7 Comments
 
LVL 8

Expert Comment

by:Haris V
Comment Utility
0
 

Author Comment

by:PhaniSrinivas
Comment Utility
How can we find Asp.net Ajax is installed on server?
0
 

Author Comment

by:PhaniSrinivas
Comment Utility
How can i check ajax is installed on my server?
0
 
LVL 13

Expert Comment

by:jaynir
Comment Utility
0
 
LVL 13

Accepted Solution

by:
jaynir earned 500 total points
Comment Utility
here are the steps described in http://confusement.wordpress.com/category/aspnet/


   1. Unsinstall the AjaxExtentions if you have it installed on your system. Youll see this in the add/remove programs under Microsoft ASP.NET 2.0 AJAX Extensions 1.03 or something very close to it.
   2. Download the new extension from here: http://asp.net/ajax/downloads/
   3. Install the extensions
   4. Download the AJAX Toolkit, you can find the link in the same place as mentioned above.
   5. Install them
   6. If youre starting a project or website from scratch, youre good to go now. If you already have a project that needs to be updated keep reading.
   7. In your project add a reference to System.Web.Extensions and System.Web.Extensions.Design
   8. Remove references to Microsoft.Web.Extensions and Microsoft.Web.Extensions.Design (if you have any)
   9. Remove references to AjaxControlToolkit (if you have it)
  10. Add a reference to AjaxControlToolkit (make sure youre referencing the newly downloaded one)
  11. Go through your code and replace references to Microsoft.Web.Extensions with System.Web.Extensions
  12. Build and pray

If you still have issues, drop me a line, I might be able to help, but Im not promising anything.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

ASP.NET AJAX callbacks to web service are becoming very popular and unavoidable these days. The feel that the user gets when only a part of the page is updated without even hindering the UI is the advantage that the callbacks offer. The wait for the…
jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now