Visual Basic .NET » ASP.NET General Discussion
namespace and class is not defined error -- daiski --


Hello All,

I keep getting namespace is not defined as a javascript error. if i remove the namespace, i get class is not defined.

namespace.class.AJAXmethod()

Background:
- Installed the starter kit and it worked fine.

So I created a new project in VWD and started from scratch. Still got the namespace error but when i removed it from the call, it worked.

All this was on my noteboook as a dev environment.

So it was time to publish on my web server and once i move the app there, i got the class error again, and when i added the namespace, i got that error too.

How can the same code work on my notebook but not on my hosting provider?

Appreciate any insight on this (Michael??). Regards.

-- LCIDFire --


Same here.

-- LCIDFire --


My problem was one has to use typeof to retrieve the type. GetType()
isn't sufficient.

-- daiski --


Here is the Stack Trace:


AjaxPro.AjaxHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) +0
System.Web.HttpApplication.MapHttpHandler(HttpContext context,
String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +175

System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+120
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +155

-- daiski --


UPDATE:

I tried to access ajaxpro/xxxxxxxxx.ashx on the host and got a System.Security.SecurityException for 3 of the files that are includes in my page source.

Any ideas?

[Submit Comment]Home