So, I've got VS 2005 running on one of my VPCs which is running Win2k3 Server.
VS 2005 has been running fine for a while, but I'm working on a project that's basically what I'm lovingly calling TECH-SOUP (embedding WMP in a winform control using interop, and them making that WINFORM control consumable as an ActiveX object in a web page -- where I'll tell the player what to play through AJAX).
Only after installing IIS 6 I keep getting these bloody: Service Unavailable errors. They're driving me nuts.
Then I check the event logs. Sure enough: evil has come, once again, for another visit:
The machine-default permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{A9E69610-B80D-11D0-B9B9-00A0C922E750}
to the user NT
AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be
modified using the Component Services administrative tool.
So (GASP), I decide (after reading the log event) that I'll need to visit DCOM, find the CLSID in question and muck with it. Too lazy to try and find the class by it's ApplicationID, I just copied and pasted that nasty SID into Regedit and let it look it up for me: IIS Admin Service (two-timing traitor!!).
Once I found the culprit I just found it in Component Services: Start | Admin Tools | Component Serivices | Computers (you'll have to toggle between icon and the +) | My Computer (same shuffling maneuver) | DCOM Config. Once in there just find IIS Admin Service | Right Click | Properties and select the Security tab.
Then from the Launch and Activate Perms, set to Customize and click Edit. Then add Network Service and give them the appropriate rights (local launch and local activation).
Stop and Restart your App Pool (may not be necessary, but I did it for good measure). Voila... IIS is back up and running.
(Now back to my tech-soup endeavors...)
After many searches and finding nothing of use in usenet or in Microsoft's own knowledgebase, I finally stumble upon your blog and this posting. I give it a try and - guess what, it fixed my problem as well. Thank you for posting this. You've saved me many hours of frustration.
Posted by: Roger Rinesmith | February 07, 2006 at 03:47 PM
Thanks, this fixed all my problems!!
Posted by: Daniel | June 20, 2007 at 03:58 AM
Two years later... but you still seem to be the man with the solution... thanks.
Posted by: Andy | October 10, 2007 at 01:53 PM
thanks a million!
Posted by: david | November 25, 2007 at 07:32 PM
What do you know, it fixed my issues as well.
Posted by: Matt | November 27, 2007 at 09:03 AM
Thanks dude. Saved me a lot of time :o)
Posted by: Mark | December 06, 2007 at 07:51 AM
This worked for me. I found myself in this state after backing out Windows 2003 Enterprise x64 R2 SP2. It was causing Windows to blue screen when restoring files.
Posted by: Dave B | December 06, 2007 at 02:19 PM
Many Thanks, Microsoft had me add the Network Service on 3 folders and many other tweaks, still did not work, but this one fixed it, cheers
Posted by: Brian | December 13, 2007 at 11:11 PM
great , its working now thanks
Posted by: Delphi Lover | January 09, 2008 at 02:54 AM
Thank you for the useful information!
Posted by: Robert | May 22, 2008 at 12:27 PM
Nice! Thanks for taking the time to inform us!!!
Posted by: Mike | July 28, 2008 at 07:15 AM
great tip.
Posted by: Dapxin | April 24, 2009 at 05:27 PM
Solution still works!
Posted by: Rick | February 05, 2010 at 06:51 AM
Still this is a issue, and all these years later, cos we are using old software now, this still works a treat, many thanks if your still alive :)
Posted by: Abyss | March 23, 2010 at 02:18 AM