We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Vista, IIS7, 0x80070005 [Answered]RSS

7 replies

Last post Apr 06, 2007 06:27 AM by BigBadJock

  • Vista, IIS7, 0x80070005

    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))

     

  • Re: Vista, IIS7, 0x80070005

    Apr 05, 2007 05:00 PM|ksingla|LINK

    Which tool are you using to see list of sites or to add a new site?
  • Re: Vista, IIS7, 0x80070005

    Apr 05, 2007 05:07 PM|BigBadJock|LINK

    IIS Manager
  • Re: Vista, IIS7, 0x80070005

    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 process monitor.

    Kanwal

  • Re: Vista, IIS7, 0x80070005

    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.
     )

  • Re: Vista, IIS7, 0x80070005

    Apr 05, 2007 06:25 PM|ksingla|LINK

    This means you only have read access to %windir%\system32\inetsrv\config\applicationHost.config but not write access. Fix the ACLs on applicationHost.config and you should be fine. I wonder how you got into this state. Do you see any errors in %windir%\iis7.log?
  • Re: Vista, IIS7, 0x80070005

    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.

    HTH,

    AJ

  • Re: Vista, IIS7, 0x80070005

    Apr 06, 2007 06:27 AM|BigBadJock|LINK

    Thanks

     That's got it running.

    John