Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
JavaScript error 'AjaxMethod' is undefined
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
devMonky  
View profile  
 More options Sep 9, 7:37 am
From: devMonky <scollins...@googlemail.com>
Date: Wed, 9 Sep 2009 04:37:55 -0700 (PDT)
Local: Wed, Sep 9 2009 7:37 am
Subject: JavaScript error 'AjaxMethod' is undefined
Hi I need help, with the above error. It's probably something stupid
I've missed.

I get this when triggering any client JavaScript function which in
turn calls any method in my AjaxMethod C# class.

This has all been working fine on previous machine.

I'm running Win XP SP3, IIS 5.1, getting the error in IE 8 (and in IE7
mode), Firefox 3 and Safari) so I guess its not a browser issue.

My solution is Visual Studio 2005, ASP.NET 2.0/C#.

My set up is as follows:

Have the AjaxPro.2.dll in my Bin folder (version 9.2.17.1), all
compiles and I can reference it etc.

The onload of my pages has:

AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxMethod));

My C# class is called "AjaxMethod".

I have extracted the following from my web.config regarding AjaxPro:

<configSections>
        <sectionGroup name="ajaxNet">
                <section name="ajaxSettings"
type="AjaxPro.AjaxSettingsSectionHandler,AjaxPro.2"
requirePermission="false" restartOnExternalChanges="true"/>
                </sectionGroup>
</configSections>

<ajaxNet>
        <ajaxSettings>
                <urlNamespaceMappings useAssemblyQualifiedName="false"></
urlNamespaceMappings>
                <token enabled="false" sitePassword="password"/>
                <oldStyle>
                        <includeMsPrototype/>
                </oldStyle>
        </ajaxSettings>
</ajaxNet>

<location path="ajaxpro">
        <system.web>
                <httpHandlers>
                        <add verb="*" path="*.asjx"
type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
                </httpHandlers>
        </system.web>
</location>

<location path="ajaxpro/prototype.asjx">
        <system.web>
                <authorization>
                        <allow users="*"/>
                </authorization>
        </system.web>
</location>
<location path="ajaxpro/core.asjx">
        <system.web>
                <authorization>
                        <allow users="*"/>
                </authorization>
        </system.web>
</location>
<location path="ajaxpro/converter.asjx">
        <system.web>
                <authorization>
                        <allow users="*"/>
                </authorization>
        </system.web>
</location>

<httpModules>
        <add name="HttpCompressionModule"
type="AjaxPro.HttpCompressionModule,AjaxPro.2"/>
</httpModules>

Then in IIS I have an Application Extension Mapping for .asjx
extension for aspnet_isapi.dll  with Limit To: GET,HEAD,POST,DEBUG.

From memory when I used to get this error at work it was because IIS
didn't have the extension mapping set up. I don't understand why I'm
getting this error even when I have the mapping set up.

If you view source of the page I can see links to the virtual files
AjaxPro creates:

<script type="text/javascript" src="/MyAppName/ajaxpro/
prototype.asjx"></script>
<script type="text/javascript" src="/MyAppName/ajaxpro/core.asjx"></
script>
<script type="text/javascript" src="/MyAppName/ajaxpro/ms.asjx"></
script>
<script type="text/javascript" src="/MyAppName/ajaxpro/
converter.asjx"></script>
<script type="text/javascript" src="/MyAppName/ajaxpro/
AjaxMethod,App_Code.asjx"></script>

I have recently installed Visual Studio 2008, and MVC.....could this
have screwed something up?

ANY help much appreciated...am totaly stumped by this!

devMonky


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
devMonky  
View profile  
 More options Oct 9, 4:49 am
From: devMonky <scollins...@googlemail.com>
Date: Fri, 9 Oct 2009 01:49:52 -0700 (PDT)
Local: Fri, Oct 9 2009 4:49 am
Subject: Re: JavaScript error 'AjaxMethod' is undefined
I still haven't found a resolution to this problem.

Can anyone help??

On Sep 9, 12:37 pm, devMonky <scollins...@googlemail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google