I also seem to experience this error after I leave the site inactive for a 
long time. I am using a refreshing iframe to keep the session alive, too.

I am a little confused on how this setting should work. Should I add all 
classes with ajax methods to the web config?
____________
Costin Manda
ECRM Europe
----- Original Message ----- 
From: "Michael Schwarz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, September 18, 2006 7:51 AM
Subject: [ajaxpro] Re: System.NotSupportedException : This method is either 
not marked with an AjaxMethod or is not available



Hi,

sorry for my late reply (or that I read this thread late), but there
is an option to prevent this:

In your web.config add a urlNamespaceMapping:

<ajaxNet>
  <ajaxSettings>
    <urlNamespaceMappings useAssemblyQualifiedName="false">
      <add type="Namespace.Class,AssemblyName" path="mypath"/>
    </urlNamespaceMapping>
  </ajaxSettings>
</ajaxNet>

If you are using the App_Code folder for your class you can use the
AssemblyName "App_Code" for this.

Regards,
Michael






On 9/5/06, epeleg <[EMAIL PROTECTED]> wrote:
>
> Hi michael,
> We have been expiriencing a System.NotSupportedException Exception with
> the messaged "This method is either not marked with an AjaxMethod or is
> not available",
> however the scenario seems to be hard to define.
> It happens usually after a new dployment of our application when a
> window that was previously connected to our application tries to
> perform an AJAX call.
>
> Looking through the AjaxHandlerFactory using Reflector I found that it
> seems to be thrown directly from the GetHandler method,
> howeve I can't figure out exactly why.
>
> Could you help ?
>
> Eyal Peleg,
>
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/

Skype: callto:schwarz-interactive
MSN IM: [EMAIL PROTECTED]




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/

The open source project is now located at
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---

Reply via email to