Friday, October 12, 2007

ASP.NET 2.0 Applications not working

After installing my Win2003 server (x64) I couldn't make ASP.NET 2.0 application to work. Usually I would check the ASP.NET tab in the IIS MMC, but that tab wouldn't appear (if it does appear verify that the correct ASP.NET version is assign to the application & in the "Virtual Directory" tab, there and "Application Settings" with execute permission - "Scripts" at least)

The solution on the web didn't work:
Microsoft comments: If a previous version was not uninstalled correctly, please regedit eliminate all versions except 2.0.0.0 in the following locations:
HKET_CLASSES_ROOT\CLSID\{7D23CCC6-A390-406E-AB67-2F8B7558F6F6}\InprocServer32\
HKET_CLASSES_ROOT\CLSID\{FD5CD8B1-6FE0-44F3-BBFB-65E3655B096E} \InprocServer32\
HKEY_CLASSES_ROOT\CLSID\{FEDB2179-2335-48F0-AA28-5CDA35A2B36D}\InprocServer32\

Also re-installing .NET Framework 2.0 didn't work, nor registering ASP.NET:
%SYSTEM%\Framework64\2.0.XXX\aspnet_regiis -i

Finally I found a solution (not to the MMC yet): use a separate application pool. After creating a separate application pool for the ASP.NET 2.0 applications everything worked just fine.

Monday, October 1, 2007

How to enable Directory Browsing in IIS on Windows Vista

For some reason Microsoft moved the "Directory Browsing" feature in Windows Vista's IIS to the following location:
Control Panel ->
Programs and Features ->
Turn windows features on and off ->
Internet Information Services ->
World Wide Web Services ->
Common Http Features ->
Directory Browsing

In windows Vista you can also replace the default directory browsing with other ways to browse directories very easily (see here for example).