INeedADip wrote:
...
> Why do you think it is coming from the
> AjaxHandlerFactory.GetHandler(...) ???
>
as I said, it was the only place in the code that I could find using
reflector that throws this exception with this message (This method is
either not marked with an AjaxMethod or is not available)
the code as shown in reflector goes like this:
public IHttpHandler GetHandler(HttpContext context, string requestType,
string url, string pathTranslated)
{
string text1 =
Path.GetFileNameWithoutExtension(context.Request.Path);
Type type1 = null;
Exception exception1 = null;
bool flag1 = false;
try
{
if ((Utility.Settings != null) &&
Utility.Settings.UrlNamespaceMappings.Contains(text1))
{
flag1 = true;
type1 =
Type.GetType(Utility.Settings.UrlNamespaceMappings[text1].ToString(),
true);
}
if (type1 == null)
{
type1 = Type.GetType(text1, true);
}
}
catch (Exception exception2)
{
exception1 = exception2;
}
and later in that function you have:
....
if (exception1 != null)
{
processorArray1[num1].SerializeObject(new NotSupportedException("This
method is either not marked with an AjaxMethod or is not available."));
return null;
}
This is the exact exception & message that I get.
> I'd like to help you figure this out. Below is me "thinking out
> loud"....
Thanks.
>
> If you re-deploy (or update the web.config or something), then the
> application cache is flushed along with the with the AjaxPro handlers.
> And when you run an AjaxPro request, the page lifecycle is not
> executed.
what do you mean when you say that "the page lifecycle is not
executed." ??
> I wonder if it has something to do with the
> AjaxSettingsSectionHandler.Create() not being fired and not in cache.
looking at the code above, I realy tend to agree with you. I wander If
after deployment we can force it to fire somehow before our users
notice the probelm.
> OK, enough of the speculation...I'll run a couple of tests....
awayting your test results ....
Thanks,
Eyal
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---