What is the solution for “The Type or namespace ‘AjaxControlToolkit’ could not be found…”?

 Error 3 The type or namespace name 'AjaxControlToolkit' could not be found
 in the global namespace (are you missing an assembly reference?)   
 D:My ApptablePopUpdata.aspx.designer.cs 58 27 table.

I have Declared this javascript but what is the problem.

<%@ Page Title="Show Data From Menu" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="PopUpdata.aspx.cs" Inherits="table.PopUpdata" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Way to reference a dll is:

  1. In Solution Explorer, select the project.
  2. On the Project menu, click Add Reference.
    The Add Reference dialog box opens.
  3. Select the tab indicating the type of component you want to reference.
    (If you don’t find your .dll in the list, then go to the browse tab and find it in your directory)

An article on MSDN to include installed libraries.

And there is another way to do it, too.

Method 2

To have the needed references for AjaxControlToolkit

Right Click project/solution > Manage NuGet Packages..> Install AjaxControlToolkit.

This will add needed assemblies to your solution.

Method 3

You’re missing an assembly reference. So you need to reference AjaxControlToolkit.dll in your project.

Method 4

I have faced the same issue. I have deleted all the files from the bin folder and then added the files back to the folder. It worked successfully. Hope it resolves your issue.

Method 5

This is general issue of dll

for solving this you must have 3 dll in your Bin folder

1–AjaxControlToolkit.dll

2–AjaxControlToolkit.dll.refresh (Refresh file)

3–AjaxControlToolkit (Program Debug database)

enter image description here

Now just add the AjaxControlToolkit.dll refrence in your application.

Method 6

Add AjaxControlToolkit.dll in your bin folder and then clean solution and rebuild your solution


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x