AjaxPro not accessible in IIS

1

I have a simple application with WebForms, I have created some methods that I will access through Ajax via AjaxPro DLL.

I used the [AjaxPro.AjaxNamespace("Teste")] attribute on the class and the [AjaxPro.AjaxMethod] on the method.

I registered the class in AjaxPro AjaxPro.Utility.RegisterTypeForAjax(typeof(Teste))

In javascript I defined the method call Teste.MetodoTeste().value

And in web.config I defined the AjaxPro configuration in this way:

<add verb="POST,GET" path="/ajaxpro/*.ashx" name="AjaxPro" type="AjaxPro.AjaxHandlerFactory,AjaxPro" />

In Visual Studio itself, when I run the application using IIS Express, the method is called correctly and I can get the return quietly.

The question is, why when I publish the application to IIS Local the system no longer finds AjaxPro?

I get several errors:

  

Failed to load resource: the server responded with a status of 404   (Not Found)

and

  

Index.aspx: 66 Uncaught ReferenceError: Test is not defined (...)

in the browser console.

    
asked by anonymous 16.11.2016 / 18:13

1 answer

0

Problem solved!

In web.config the ajaxpro configuration was as follows:

<add verb="POST,GET" path="/ajaxpro/*.ashx" name="AjaxPro" type="AjaxPro.AjaxHandlerFactory,AjaxPro" />

I made a setting in the path tag and the application started working on IIS Local and IIS Express:

<add verb="POST,GET" path="*.ashx" name="AjaxPro" type="AjaxPro.AjaxHandlerFactory,AjaxPro" />
    
17.11.2016 / 17:22