|
|
| View previous topic :: View next topic |
| Message |
|
Author
|
daiski
Newbie
|
Joined: 13 Jul 2006
Posts: 3
|
|
Posted: Thu Jul 13, 2006 4:00 am
Post subject: namespace and class is not defined error |
|
|
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.
|
| Back to top |
|
 |
|
Author
|
LCIDFire
Newbie
|
Joined: 13 Jul 2006
Posts: 5
|
|
Posted: Thu Jul 13, 2006 4:00 am
Post subject: |
|
|
Same here.
|
| Back to top |
|
 |
|
Author
|
LCIDFire
Newbie
|
Joined: 13 Jul 2006
Posts: 5
|
|
Posted: Thu Jul 13, 2006 4:00 am
Post subject: |
|
|
My problem was one has to use typeof to retrieve the type. GetType()
isn't sufficient.
|
| Back to top |
|
 |
|
Author
|
daiski
Newbie
|
Joined: 13 Jul 2006
Posts: 3
|
|
Posted: Thu Jul 13, 2006 4:00 am
Post subject: |
|
|
Here is the Stack Trace:
[SecurityException: Request failed.]
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
|
| Back to top |
|
 |
|
Author
|
daiski
Newbie
|
Joined: 13 Jul 2006
Posts: 3
|
|
Posted: Thu Jul 13, 2006 4:00 am
Post subject: |
|
|
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?
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|