FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister  MasterVB.NET
Visual Basic 2005 .NET Forum
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
namespace and class is not defined error
 
Post new topic   Reply to topic    MasterVB.NET Forum Index -> ASP.NET General Discussion
View previous topic :: View next topic  
Message
Author
daiski
Newbie
Joined: 13 Jul 2006
Posts: 3

PostPosted: Thu Jul 13, 2006 4:00 am    
Post subject: namespace and class is not defined error
Reply with quote

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
View user's profile Send private message
Author
LCIDFire
Newbie
Joined: 13 Jul 2006
Posts: 5

PostPosted: Thu Jul 13, 2006 4:00 am    
Post subject:
Reply with quote

Same here.



 

Back to top
View user's profile Send private message
Author
LCIDFire
Newbie
Joined: 13 Jul 2006
Posts: 5

PostPosted: Thu Jul 13, 2006 4:00 am    
Post subject:
Reply with quote

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



 

Back to top
View user's profile Send private message
Author
daiski
Newbie
Joined: 13 Jul 2006
Posts: 3

PostPosted: Thu Jul 13, 2006 4:00 am    
Post subject:
Reply with quote

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
View user's profile Send private message
Author
daiski
Newbie
Joined: 13 Jul 2006
Posts: 3

PostPosted: Thu Jul 13, 2006 4:00 am    
Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    MasterVB.NET Forum Index -> ASP.NET General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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


Archieve

Powered by phpBB © 2001, 2002 phpBB Group, used in Visual Basic 2005 .NET Forum

| Visual Basic .NET Forum | Online Recipe Archiver | Shareware Freeware PAD | Lowongan Kerja | Kamus Online | Health Supply | Digital Camera Review |
Orang Paling Keren

RSS