473,832 Members | 2,132 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Compiler Error Message: CS0246: The type or namespace name 'AjaxPr

I can't get AJAX.NET Pro to work. I keep getting a Compiler Error Message:
CS0246: The type or namespace name 'AjaxPro' could not be found (are you
missing a using
directive or an assembly reference?)

I have a reference to AJAX.NET Pro and I created and the wire up was
placed in the Webconfig file.

<!-- Wire up Ajax.NET Pro ashx Handler -->
<location path="ajaxpro">
<httpHandlers >
<add verb="POST,GET" path="ajaxpro/*.ashx"
type="AjaxPro.A jaxHandlerFacto ry, AjaxPro.2"/>

And the code behind page has a reference to AjaxPro.

using System;
using System.Data;
using System.Configur ation;
using System.Collecti ons;
using System.Web;
using System.Web.Secu rity;
using System.Web.UI;
using System.Web.UI.W ebControls;
using System.Web.UI.W ebControls.WebP arts;
using System.Web.UI.H tmlControls;
using AjaxPro;
public partial class _08_AjaxCallbac k : System.Web.UI.P age
protected void Page_Load(objec t sender, EventArgs e)
Utility.Registe rTypeForAjax(ty peof(_08_AjaxCa llback));
public string ChangeImage(str ing input, string left, string right)
string filename =
System.IO.Path. GetFileNameWith outExtension(in put);
if (string.Compare Ordinal(filenam e, left) == 0)
//strings match == send back 'right' string
return input.Replace(f ilename, right);
return input.Replace(f ilename, left);

The intelesense in Visual Webdeveloper 2005 Express lists AjaxPro's
methods, properites etc..., so it seems like the object is being
referenced, yet I get get a Compiler Error Message: CS0246: The type or
namespace name 'AjaxPro' could not be found (are you missing a using
directive or an assembly reference?)

Source Error:
Line 9: using System.Web.UI.W ebControls.WebP arts;
Line 10: using System.Web.UI.H tmlControls;
Line 11: using AjaxPro;
Line 12:
Line 13: public partial class _08_AjaxCallbac k : System.Web.UI.P age
Source File:
c:\Inetpub\wwwr oot\Dev\Keith\A JAX_Pro_Test\08 _AjaxCallback.a spx.cs
Line: 11
Any ideas as to what I am missing???

Thanks in advance,


Aug 24 '06 #1
0 3272

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: Alex Duggleby | last post by:
Hi everybody, I'm trying to add some mime types to the local IIS server using some c# code. The code I'm using is: ---snip--- DirectoryEntry _mimeMap =
by: Dave H | last post by:
You'll have to excuse me if I don't know what I'm talking about, but I'm new to webservices. I'm attempting to compile a C# file with csc /r:dmcorex.dll C:\InetPub\wwwroot\asptest\mtm\OBWebSvc.asmx.cs. dmcorex is in a using statement in the file 'using dmcorex;'. After running this I get the following error: 'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\dmcorex.dll' could not beopened -- 'There isn't metadata in the memory or stream' ...
by: Joe DeAngelo | last post by:
When I try to compile a source code which should normally run I got this error message error CS0246: The type or namespace name 'XmlSchemaSet' could not be found (are you missing a using directive or an assembly reference Platform SDK 1.1 is successfuly installed (under Win2000+SP4) So how can cope with this problem? Joe
by: Erik H. | last post by:
Trying to connect to MySQL db on localhost, and populate datagrid from a dataset using code inline method. Getting the following compile error: Error Message: "CS0246: The type or namespace name 'CoreLab' could not be found (are you missing a using directive or an assembly reference?)" I downloaded the add on for connecting to MySQL using ADO.NET and installed it, but am still getting this error. Anybody ever run into this before?
by: Leo | last post by:
Hi, The code below is working: Main.cs ------------- using System; namespace test3
by: infinetinc | last post by:
I'm receiving the following error when this site is published to the production environment: Compiler Error Message: CS0246: The type or namespace name 'GridViewHelper' could not be found (are you missing a using directive or an assembly reference?) The error does not occur on my local machine. The GridViewHelper function is defined in my APP_CODE folder and is in both locations. I'm using MS Visual Web Developer 2005 Express.
by: Mariano | last post by:
Greetings, I'm developing a web site in asp.net 2.0. I have class files in App_Code and they are used in aspx. Example: * App_Code ( i have users.cs containing users class, data.cs is DAL) * index.aspx Example in index.aspx private void read() { users u = new users(); ....
by: rhea06car | last post by:
i got an error massage cs0246: The type or namespace name 'StringCollection' could not be found (are you missing a using directive or an assembly reference?) heres my code: public static StringCollection GetCountries() { StringCollection Countries = new StringCollection(); Countries.AddRange (_countries); return countries; }
by: Weeble | last post by:
The included program compiles without errors, but produces an error when you attempt to use a refactoring tool: J:\TypeofTest\TypeofTest1\Program.cs(3,27): error CS0246: The type or namespace name 'Bar' could not be found (are you missing a using directive or an assembly reference?) In addition, the syntax highlighter doesn't highlight the "Bar" in "typeof(Bar)" as a class. If I replace that with "typeof(Foo.Bar)", everything works as...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.