472,119 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

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.AjaxHandlerFactory, AjaxPro.2"/>
</httpHandlers>
</system.web>
</location>

And the code behind page has a reference to AjaxPro.

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using AjaxPro;
public partial class _08_AjaxCallback : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Utility.RegisterTypeForAjax(typeof(_08_AjaxCallbac k));
}
[AjaxMethod()]
public string ChangeImage(string input, string left, string right)
{
string filename =
System.IO.Path.GetFileNameWithoutExtension(input);
if (string.CompareOrdinal(filename, left) == 0)
{
//strings match == send back 'right' string
return input.Replace(filename, right);
}
return input.Replace(filename, 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.WebControls.WebParts;
Line 10: using System.Web.UI.HtmlControls;
Line 11: using AjaxPro;
Line 12:
Line 13: public partial class _08_AjaxCallback : System.Web.UI.Page
Source File:
c:\Inetpub\wwwroot\Dev\Keith\AJAX_Pro_Test\08_Ajax Callback.aspx.cs
Line: 11
Any ideas as to what I am missing???

Thanks in advance,

Webdev2

Aug 24 '06 #1
0 3130

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Alex Duggleby | last post: by
6 posts views Thread by Dave H | last post: by
1 post views Thread by Leo | last post: by
3 posts views Thread by Mariano | last post: by
reply views Thread by leo001 | last post: by

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.