The File Extensions Database

.ASHX File Extension

  • Developer by: Microsoft
  • Category: Web Files
  • Format: Text

What is an .ASHX file?

.ASHX is ASP.NET Web Handler File

An ASHX file is a webpage that is part of an ASP.NET web server application. It contains references to other pages hosted on the web server that are sent to the user's web browser. ASHX files are processed by the server's ASP.NET HTTP Handler when a client web browser requests the page.

Sometimes ASHX files are used for sending .PDF files to the user's browser, since the ASHX file has a reference to the PDF document. However, when the file is downloaded, the file extension is not renamed to ".pdf" and remains with the ".ashx" file extension. In this case, you can rename the file extension to ".pdf" and view it with Adobe Reader or another PDF viewer. You can also sometimes fix this problem by making sure that the web browser has the Adobe Reader plug-in installed. If installed, the PDF file may then open directly in the browser.

NOTE: Many ASHX pages have only a small amount of code, even as short as a single line. Page functions are written in the C# programming language.

Programs that open ASP.NET Web Handler File
Microsoft Visual Web Developer
Microsoft Visual Studio 2017
Any text editor
MacroMates TextMate

How to solve problems with ASHX files

  • Associate the ASHX file extension with the correct application. On :
    Windows: Right click on any ASHX file and then click "Open with" > "Choose another app". Now select another program and check the box "Always use this app to open *.ASHX files". Mac: Right click (or Ctrl-click) the ASHX file, then click "Open with" > "Other...". Then choose another program and check the "Always Open With" box. Linux: Right click on the file, and select "Open with" and choose another program. iPhone: Tap the file. If you do not see an app to open the file, then tap Share "Share" and choose an app. Alternatively, save the file. Then open the Files app Files app. There long-press on the file, then release your finger. You will see a black menu bar. Then tap "Share" and select an app. Android: Tap the Settings icon on your smartphone, then tap on the Apps section. There tap the Options icon in the top right-hand corner of the screen to change the default apps.
  • Update your software that should actually open .ASHX is ASP.NET Web Handler File. Because only the current version supports the latest ASHX file format. Search, therefore, e.g. on the Microsoft manufacturer website after an available .ASHX is ASP.NET Web Handler File update.
  • To make sure that your ASHX file is not corrupted or virus-infected, get the file again and scan it with antivirus software.