anuj khosla
anuj khosla

Reputation: 43

How to deploy proxy.ashx in Azure app Service

I'm looking for someone who has deployed proxy.ashx in Azure app service and made it work as on Windows VM it works fine but when I deployed on App service it doesn't work

Upvotes: 0

Views: 306

Answers (1)

Venkatesan
Venkatesan

Reputation: 10370

How to deploy proxy.ashx in Azure app Service

  • As mentioned by Thiago Custodio in the comment, we need to include httphandlers in the web.config file for httphandlers to work in Azure Web App.
  • As per this SO Thread, Azure uses the Integrated mode ,so we need to register HTTP Handlers in Integrated Mode
<system.webServer>
    <handlers>
      <!-- Register the HttpHandler used for My Handler requests (IIS 7.0+ running in Integrated Mode)  -->
      <add name="SampleHandler" preCondition="integratedMode" 
        verb="GET" path="SampleHandler.ashx"
        type="YourWebApp.Web.SampleHandler"/>
    </handlers>  
   </system.webServer> 
  • Add the httphandlers to bin folder of Azure Web App Service, this can be done by adding the extensions in Azure Portal- KUDU Console - https://DeployedAppName.scm.azurewebsites.net

500.13 generic error

Please follow the steps provided here for Troubleshooting 500 series errors

References taken from

ASP.NET HTTP Handlers on Azure

Upvotes: 0

Related Questions