I have a Web-Forms application, deployed onto Azure.
The original application makes use of Web Methods in code behind in aspx files and ashx handlers. ASP.Net generates Javascript references for Post requests to these methods. I needed to maintain the Javascript, but wanted to implement WebApi controllers.
This works in my development environment, using IIS Express in Visual Studio.
I have added the required nuget packages for WebApi, and a series of Web Api Controllers. I created a Global.asax and configured the default WebApi routing, however each Web Api method, has its own Routing attribute to override the applicable method (ie.
[Route("[pagename].aspx/[methodName]")]
In dev this works. But when deployed to Azure App Service the original aspx file is still being called.
Am I missing something in my Configuration? I did try ..
runAllManagedModulesForAllRequests="true"
...but that did nothing.