IIS 5 & IIS 6
Vista, IIS7, 0x80070005
Last post Apr 06, 2007 06:27 AM by BigBadJock
Apr 05, 2007 04:43 PM|BigBadJock|LINK
I have Vista Ultimate on a machine upgraded from xp sp2. After a bit of trouble I've got IIS7 installed with ASP.Net 2.0. However in the course of that the default website has disappeared. When I try to add a website I get the error:
There was an error while performing this operation. Details: Access is Denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Apr 05, 2007 05:00 PM|ksingla|LINK
Apr 05, 2007 05:07 PM|BigBadJock|LINK
Apr 05, 2007 05:37 PM|ksingla|LINK
My guess is tools are not able to read IIS config due to insufficient access permissions. Do you see anything in event viewer? What's the state of was/w3svc services? Can you try running "%windir%\system32\appcmd.exe list site" from an elevated command window?
If this doesn't give enough information, we have to resort to
Apr 05, 2007 06:09 PM|BigBadJock|LINK
I can't find anyting in the event viewer.
w3svc is running.
appcmd add site shows nothing.
when I try
C:\Windows\System32\inetsrv>appcmd add site /name:"default" /id:1 /physicalpath:"c:\inetpub\wwwroot"
SITE object "default" added
APP object "default/" added
VDIR object "default/" added
ERROR ( hresult:80070005, message:Faled to commit configuration changes.
Access is denied.
Apr 05, 2007 06:25 PM|ksingla|LINK
Apr 05, 2007 06:26 PM|ApurvaJoshi|LINK
Make sure your config files are not "Read Only"
Config file - ApplicationHost.config is located in %systemroot%\Inetsrv\config folder, and if it's delegated then you will Web.Config inside your content directory.
Apr 06, 2007 06:27 AM|BigBadJock|LINK
That's got it running.