views:

126

answers:

2

I seem to make this mistake everytime I set up a new development box. Is there a way to make sure you don't have to manually assign rights for the ASPNET user? I usually install .Net then IIS, then Visual Studio but it seems I still have to manually assign rights to the ASPNET user to get everything running correctly. Is my install order wrong?

+2  A: 

Install IIS, then .NET. The .NET installation will automatically register the needed things with IIS.

If you install .NET first, run this:

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i

to run the registration parts, and

%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ga userA

to set up the security rights for userA

Jonathan
+1  A: 

If you install first IIS and then .Net, it'll be OK.

In your scenario - use Aspnet_regiis.exe -qa user (not available for .Net < 2.0)

Sunny