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
268 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
ID: 24333741
0
 

Author Comment

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

Author Comment

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

Expert Comment

by:jaynir
ID: 26119223
0
 
LVL 13

Accepted Solution

by:
jaynir earned 500 total points
ID: 26119251
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JSON and PHP question 5 50
AJAX Slow 15 55
DataList control to call Modal Popup Extender 10 71
Code works but how can I download the file? 20 67
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…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

930 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

11 Experts available now in Live!

Get 1:1 Help Now