But each time I do, I receive the following error message:
An error has occurred: 0x8007b799
You must have administrative rights on this machine in order to run this tool.
I am running Windows 7. I run the command prompt with elevated rights (run as admin and accept UAC prompt) but still get this error.
I have checked for the correct rights on the folder containing the aspnet_regiis.exe tool (Full Administrative rights), but still this message persists!
It did - nowhere else on the Internet did I find this mentioned but it is EXACTLY what helped me. For anyone that comes along later, my environment was Windows 7, IIS 7 and .NET 4.0.
I know that your problem is fixed but my curiousity wants to know what is wrong hete because opening a command prompt as an administrator is enough to be able to run the asp.net registration tool.
When you open the prompt as admin does the title of the command prompt start with "Administrator:"?
Does it work when you open a Visual Studio command prompt as an admin?
Give a man a fish and you will feed him for a day. Teach a man to fish and you will feed him for a lifetime.
Yes, the command prompt window clearly said it was an administrator - in fact I tried with both a domain admin and local admin account. The only thing that worked was turning off UAC (and rebooting - you have to reboot after turning off UAC).
6233114
Member
82 Points
59 Posts
Issue running aspnet_regiis.exe -i
Jun 01, 2010 06:45 PM|LINK
I am attempting to install the ASP.NET 4.0 runtime to IIS by running the following command:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
But each time I do, I receive the following error message:
An error has occurred: 0x8007b799
You must have administrative rights on this machine in order to run this tool.
I am running Windows 7. I run the command prompt with elevated rights (run as admin and accept UAC prompt) but still get this error.
I have checked for the correct rights on the folder containing the aspnet_regiis.exe tool (Full Administrative rights), but still this message persists!
Any suggestions as to what I am missing?
6233114
Member
82 Points
59 Posts
Re: Issue running aspnet_regiis.exe -i
Jun 01, 2010 10:51 PM|LINK
Turning off the UAC fixes this issue.
Start > Control Panel > System and Security > Action Center > Choose Your UAC Level - Set this to Never Notify (Requires a restart);
I hope this helps some one.
dullroar
Member
4 Points
2 Posts
Re: Issue running aspnet_regiis.exe -i
Sep 06, 2010 11:00 PM|LINK
It did - nowhere else on the Internet did I find this mentioned but it is EXACTLY what helped me. For anyone that comes along later, my environment was Windows 7, IIS 7 and .NET 4.0.
gabriel.loza...
Contributor
3583 Points
800 Posts
Re: Issue running aspnet_regiis.exe -i
Sep 06, 2010 11:18 PM|LINK
I know that your problem is fixed but my curiousity wants to know what is wrong hete because opening a command prompt as an administrator is enough to be able to run the asp.net registration tool.
When you open the prompt as admin does the title of the command prompt start with "Administrator:"?
Does it work when you open a Visual Studio command prompt as an admin?
dullroar
Member
4 Points
2 Posts
Re: Issue running aspnet_regiis.exe -i
Sep 07, 2010 12:41 PM|LINK
Yes, the command prompt window clearly said it was an administrator - in fact I tried with both a domain admin and local admin account. The only thing that worked was turning off UAC (and rebooting - you have to reboot after turning off UAC).
gabriel.loza...
Contributor
3583 Points
800 Posts
Re: Issue running aspnet_regiis.exe -i
Sep 07, 2010 08:45 PM|LINK
Very odd but I am glad you managed to get it working.
veljac99
Member
2 Points
1 Post
Re: Issue running aspnet_regiis.exe -i
Jan 23, 2011 08:43 AM|LINK
I noticed today that in cmd prompt run as Administrator
this command doesn't work :
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe –i
(it writes help and does not do nothing else)
BUT if you do:
cd %windir%\Microsoft.NET\Framework\v4.0.30319\
aspnet_regiis -i
..then it executes normaly.
So looks like it depends on working directory (paths)
This way I just solved my problem:
Handler "PageHandlerFactory-Integrated" has a bad module "ManagedPipelineHandler" in its module list
Error handlihng could be more specific about that.
Does anybody find this as usefull tip?
aspnet_regiis.exe solved PageHandlerFactory ManagedPipelineHandler
ArshadAminKh...
Member
2 Points
1 Post
Re: Issue running aspnet_regiis.exe -i
Jan 23, 2013 12:59 PM|LINK
Solution:
open the command prompt with administrator access by
Start -> All Programs -> Accessories -> Command Prompt -> right click -> run as administrator
Then run the same command, it works fine.
C:\Windows\Microsoft.NET\Framework\v4.0.30319
aspnet_regiis.exe -i
It will Inshallah Work
Take Care