David
Thu Sep 27 00:06:39 PDT 2007
Don't know why you're touching machine.config.
<configSections> for IIS exist in applicationHost.config, which
happens to be the file that is corrupted on your machine and
preventing installation/uninstallation.
I know you said you don't know how it happened, but you may want to
figure out how the corruption happened because it'll either keep
messing up your IIS7 installations or it may corrupt other data files
on your computer, both of which are bad. Perhaps you have failing
hardware.
This may help. I could have sworn that IIS7 setup makes a backup of
applicationHost.config to cover for this situation.
<configSections>
<sectionGroup name="system.applicationHost">
<section name="applicationPools"
allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="configHistory"
allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="customMetadata"
allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="listenerAdapters"
allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="log" allowDefinition="AppHostOnly"
overrideModeDefault="Deny" />
<section name="sites" allowDefinition="AppHostOnly"
overrideModeDefault="Deny" />
<section name="webLimits" allowDefinition="AppHostOnly"
overrideModeDefault="Deny" />
</sectionGroup>
<sectionGroup name="system.webServer">
<section name="asp" overrideModeDefault="Deny" />
<section name="caching" overrideModeDefault="Allow" />
<section name="cgi" overrideModeDefault="Deny" />
<section name="defaultDocument"
overrideModeDefault="Allow" />
<section name="directoryBrowse"
overrideModeDefault="Allow" />
<section name="fastCGI" allowDefinition="AppHostOnly"
overrideModeDefault="Deny" />
<section name="globalModules"
allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="handlers" overrideModeDefault="Deny" />
<section name="httpCompression"
allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="httpErrors" overrideModeDefault="Deny" />
<section name="httpLogging" overrideModeDefault="Deny" />
<section name="httpProtocol" overrideModeDefault="Allow" /
>
<section name="httpRedirect" overrideModeDefault="Allow" /
>
<section name="httpTracing" overrideModeDefault="Deny" />
<section name="isapiFilters"
allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
<section name="modules"
allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
<section name="odbcLogging" overrideModeDefault="Deny" />
<sectionGroup name="security">
<section name="access" overrideModeDefault="Deny" />
<section name="applicationDependencies"
overrideModeDefault="Deny" />
<sectionGroup name="authentication">
<section name="anonymousAuthentication"
overrideModeDefault="Deny" />
<section name="basicAuthentication"
overrideModeDefault="Deny" />
<section
name="clientCertificateMappingAuthentication"
overrideModeDefault="Deny" />
<section name="digestAuthentication"
overrideModeDefault="Deny" />
<section
name="iisClientCertificateMappingAuthentication"
overrideModeDefault="Deny" />
<section name="windowsAuthentication"
overrideModeDefault="Deny" />
</sectionGroup>
<section name="authorization"
overrideModeDefault="Allow" />
<section name="ipSecurity" overrideModeDefault="Deny" /
>
<section name="isapiCgiRestriction"
allowDefinition="AppHostOnly" overrideModeDefault="Deny" />
<section name="requestFiltering"
overrideModeDefault="Allow" />
</sectionGroup>
<section name="serverRuntime" overrideModeDefault="Deny" /
>
<section name="serverSideInclude"
overrideModeDefault="Deny" />
<section name="staticContent" overrideModeDefault="Allow" /
>
<sectionGroup name="tracing">
<section name="traceFailedRequests"
overrideModeDefault="Allow" />
<section name="traceProviderDefinitions"
overrideModeDefault="Deny" />
</sectionGroup>
<section name="urlCompression"
overrideModeDefault="Allow" />
<section name="validation" overrideModeDefault="Allow" />
</sectionGroup>
</configSections>
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Sep 26, 4:08 pm, "Pablo Montilla" <mel...@odyssey.com.uy> wrote:
> Hello, I've got a messed up installation of IIS7 on my development
> machine. I really don't know how it happened, it all started with a 53Kb
> applicationHost.config file with that only contained 0 bytes, and now I
> can't uninstall and reinstall to continue my work.
>
> I've tried uninstallation but the appwiz.cpl applet gave me a generic
> error and failed to uninstall...looking in \Windows\logs\cbs\cbs.log I
> found that the error was related to an appcmd lock, and tried to fix it
> touching machine.config...then that gave other error, etc. I've spent all
> this day trying to work on this with no luck.
>
> Any way to completely remove IIS7 so I can reinstall? If that's not
> possible, can anyone please give me the correct entries to the
> <configSections> section in machine.config that refer to
> system.applicationHost and system.webServer?
>
> I'm desperate right now!!
> Pablo
>
> --
>
> Have I kept you waiting?
> -- One of the world's worst questions
> -- Jane Goodsell
>
> Pablo Montillawww.odyssey.com.uy