Galin Iliev's blog

Software Architecture & Development

ASP.NET 1.1 Application Service Unavailable Error

We've found a terrible problem while developing websites with ASP.NET 1.1. Initially I though it is version  problem because I have .NET Framework 2.0 installed on development machine.

I found an forum post where they said everything is fine when ASPNET account is in Administrators group. But this is nonsense - ASPNET  accout CANNOT BE IN ADMINISTRATORS group. Otherwise this will be BIG security hole.

So I kept looking for solution and found article on MS Knowledge base - Process and request identity in ASP.NET:

Blindly grating rights described in section Default permissions for the ASPNET account didn't help us a lot.
I did the following.

  1. Delete ASPNET account from development machine.
  2. Execute from Visual Studio .NET 2003 Command Prompt  aspnet_regiis -i so ASPNET 1.1 is installed on system and ASPNET accoutn is created.
  3. Grant read rights for ASPNET on %sysroot%\Windows
  4. Grant full rights for ASPNET on %installroot%\ASP.NET Temporary Files
  5. Grant read rights for ASPNET on IIS Web project folder so ASPNET can read root web.config file
  6. Grant read rights for ASPNET on virtual folder where project reside
  7. Execute iisreset from command prompt.

This resolve the problem. I hope this helps.

 

Running ASP.NET 1.1 and 2.0 side by side

Today I installed .NET Framework Redist 2.0 onthe server. I am very excited about this. I waste about 3 hours on moving one ASP.NET project to ASP.NET 2.0 and at the end I wanted to place it on server so we could evaluate speed. And I got error. Can you imagine?

Then I did some googleing and I found this article which says:

You can configure individual virtual directories in the IIS to use different version. The IIS Management Console has a new tab called ASP.NET, see image below, in which you can select which version you would like to use, whithout doing a lot of script-mappings.

This makes it really easy to make new applications take usage of the new .NET Framework while your old applications still use the .NET 1.1.