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.