asp.png

My colleague is using ASP.NET. I decided to learn basics of it. After all, you have to know your enemy. As it usually goes, pretty soon I got into trouble. Internet Information Services (IIS 5.1) at my machine (Windows XP Professional, Service Pack 2) was processing server code of asp pages, but not of aspx. Internet Explorer would show HTML portion of aspx page, but server code was ignored. Firefox was showing asp pages, but for aspx pages I was getting "open with" pop-up.

What went wrong? .NET Framework and IIS are installed.

I started looking at Internet Information Services (Start > All Programs > Administrative Tools > Internet Information Services). At ASP.NET tab of Web Sites Properties window (Internet Information Services > local computer > Web Sites > right click > Properties ) I saw that ASP.NET version is not selected, so I selected 2.0.50727 (1.1.4322 was also available).

No luck. I started getting this error page.

Server Application Unavailable

Time to ask my developer for help. He said I should create virtual directory.

  • at C:\Inetpub\wwwroot\ create directory asp
  • Internet Information Services > local computer > Web Sites > Default Web Site > right click > New > Virtual Directory... > enter alias ("asp" sounds good) > browse to directory > make sure "Read" and "Run scripts (such as ASP)" checkboxes are checked
  • Internet Information Services > local computer > Web Sites > Default Web Site > virtual directory alias ("asp", remember) > right click > Properties > ASP.NET > ASP.NET version > 2.0.50727

Then I got different error message.

Failed to access IIS metabase.

According to Failed to access IIS metabase blog post from R. Aaron Zupancic, the problem was:

You may have installed IIS after installing the .NET framework.

True. I installed .NET framework immediately after I installed Windows, and I installed IIS later when I needed it. Solution? Open command prompt, go to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and execute

aspnet_regiis -i

Everything works fine now. Firefox needed some time to start recognizing aspx pages (I was still getting "open with" pop-up), but now it works.