Before you can use ASPX pages in an IIS website you need to enable this Webservice Extension in IIS.
If you install IIS after the .NET framework was installed, it is likely that the ASPX extension is not registered in IIS.
To register it manually run the aspnet_regiis.exe application in the .NET framework folder.
Replace the <framework version> with the correct verion.
c:\Microsoft.NET\FRAMEWORK\<framework version>\aspnet_regiis.exe -i
NOTE: If you are running a x64 OS you will need to configure IIS so that is will run 32-bit applications. If not, the apsnet_regiis application will not work. An error message stating “The error indicates that IIS is in 64 bit mode, while this application is a 32 bit application and thus not compatible.”
To enable to run 32-bit applications on 64-bit Windows
|1.||Open a command prompt and navigate to the C:\Inetpub\AdminScripts directory.|
|2.||Type the following command:
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 true