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
281 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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 …

770 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