I am using AjaxPro to call many web services from Javascript code. As
such, I have the following httpHandler mapping in my web.config:
<add verb="POST,GET" path="ajaxpro/*.ashx"
type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
However, one of these web services fires up a VB6 STA COM component.
This is fine when I call the web service outside of AjaxPro because I
have a HTTP handler "wrapper" that piggy-backs onto the ASPX Page
AspCompat functionality (see http://msdn.microsoft.com/msdnmag/issues/06/10/WickedCode/).
My web.config has this line in it:
<add verb="POST,GET" path="VB6WebSvc.asmx" type="MyHandler,
MyAssembly"/>
But I need to do something similar when I call this web service from
AjaxPro. Therefore I has defined a further handler "wrapper" which
invokes the AjaxPro handler is a similar way to the WickedCode article
above. Now what I really want is to configure my web.config as
follows, effectively so AjaxPro calls my web service through my STA
thread wrapper handler:
<add verb="POST,GET" path="ajaxpro/*.ashx"
type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
<add verb="POST,GET" path="ajaxpro/*VB6WebSvc*.ashx" type="MyHandler,
MyAssembly"/>
but the second line doesn't get picked up.
Does anyone know if there is a way to configure this?
Thanks in advance,
Mike.