PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?V2ViRGV2Mg==?=
Guest
Posts: n/a
 
      24th Aug 2006
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_AjaxCallback));


}


[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_AjaxCallback.aspx.cs
Line: 11


Any ideas as to what I am missing???

Thanks in advance,

Webdev2



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler Error Message CS0246 Mariano Microsoft ASP .NET 3 13th Jul 2007 08:11 PM
Compiler Error Message: CS0246: The type or namespace name could not be found (are you missing a using directive or an assembly reference?) infinetinc@gmail.com Microsoft ASP .NET 4 26th Dec 2006 04:46 PM
Compiler Error Message: CS0246 Kumar Bhogaraju Microsoft ASP .NET 1 19th Jun 2006 05:04 PM
Compilation error CS0246: The type or namespace name 'MySql' could not be found Benny Dein Microsoft ASP .NET 0 20th Mar 2006 06:30 PM
What means this error: CS0246: The type or namespace name 'xxxx' could not be found Joe DeAngelo Microsoft C# .NET 3 12th Aug 2004 01:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:00 PM.