When running aspnet_regiis.exe from a desktop application, it can run ok. But, if I run the same code from a Web application, I will get a message saying: "An error has occurred: 0x80040150 Could not read key from registry". This is related to some kind of security which doesn't allow the application to read from the registry. I have found that this depends on various settings. I made a test running this with an account that has full access. It didn't change anything. I double checked with System.Security.Principal.WindowsIdentity.GetCurrent().Name to make sure it was using the account I set up. It was ok. However, something is blocking this to execute ok. Where else could I look to try to find a way to execute aspnet_regiis.exe from my ASP.NET application? I am running IIS 6 on Windows Server 2003.