473,748 Members | 2,161 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">
<system.web>
<httpHandlers >
<add verb="POST,GET" path="ajaxpro/*.ashx"
type="AjaxPro.A jaxHandlerFacto ry, AjaxPro.2"/>
</httpHandlers>
</system.web>
</location>

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));
}
[AjaxMethod()]
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,

Webdev2

Aug 24 '06 #1
0 3268

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

Similar topics

0
360
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 =
6
10324
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' ...
3
13294
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
6
3190
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?
1
3266
by: Leo | last post by:
Hi, The code below is working: Main.cs ------------- using System; namespace test3
4
23883
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.
3
3231
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(); ....
1
2577
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; }
10
1276
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...
0
8983
marktang
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...
0
9528
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9310
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,...
1
6792
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6072
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();...
0
4592
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3298
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
3
2206
bsmnconsultancy
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.