Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is IIS not serving aspx pages?

I'm deploying an ASP.NET application to Windows Server 2003 under IIS

IIS is serving html pages fine but I get a page not found when I try and serve IIS pages

like image 522
AJM Avatar asked Jun 17 '09 16:06

AJM


People also ask

Which extension is responsible for serving ASPX page in IIS?

Then, IIS will pass the requests for that files to the ASP.NET ISAPI extension. ISAPI extension for ASP.NET is aspnet_isapi. dll. While installing ASP.NET in the server, it installs its ISAPI extension (aspnet_isapi.

Why can't I open an ASPX file?

Windows don't support ASPX extension and that is why if you want to open . aspx extension file you won't be able to do so. The only way to open this file is to first convert it to another extension which is supported by Windows. Generally, ASPX extension files are converted into PDF format because the .


2 Answers

You may need to "register" IIS for ASP.NET applications. As an administrator, run the command "%systemroot%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i". In addition, you may need to convert your web site to an application through the IIS management console.

like image 168
Jacob Avatar answered Nov 14 '22 23:11

Jacob


By default, IIS has ASP support disabled in IIS6.

A server running a member of the Microsoft® Windows® Server 2003 family supports application server functionality, with Microsoft ASP.NET as an option that you can enable when configuring the application server role. To deploy ASP.NET Web applications to a production server, you must be sure to enable the ASP.NET and Internet Information Services (IIS) roles on the production server before you distribute the application.

See here for instructions to enable it: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/9fc367dd-5830-4ba3-a3c9-f84aa08edffa.mspx?mfr=true

like image 32
Rob Allen Avatar answered Nov 14 '22 23:11

Rob Allen