MVC WebApi Ajax error only on homologation server

0

I have a page in mvc that calls a method in webapi (another project inside the solution), it happens that in localhost everything works normally, when it goes homologation, when calling the method in api, it excute everything correctly, does what has to do, but the return of ajax comes as an error, just as an error msg (even doing what it has to do) Can someone help me? Obs: Remembering that the method worked on localhost, only on the homologation server is giving error (error, but even with error executes the method) call ajax:

Methodnotapi:

    
asked by anonymous 08.06.2014 / 03:58

1 answer

0

I discovered the problem, it happens that in localhost, the domain was the same for the webApi project and for the WebSite, when I published the homologation the domain was different causing the problem of the return of ajax, I left the webApi next to the project of the website, while publishing the domain was the same for both not occurring the error in ajax, Thanks for the help guys.

    
10.06.2014 / 00:55