The web.config is invalid on this IIS Web Site


When you unextend a web application via Central Admin or Stsadm.exe –o UnextendVs on a SharePoint 2007 farm, you may see this message in the SharePoint Trace Logs:

Area

Category

EventID

Level

Message

Windows SharePoint Services

Topology

8zqm

High

Solution Deployment : Error occurred for solution MySolution.wsp - Error: The web.config is invalid on this IIS Web Site: C:\inetpub\wwwroot\wss\VirtualDirectories\MyExtendedWebApp80\web.config.

You get this error when you have a Web Application scoped solution that is deployed to the Web Application that modifies the web.config.  For example, a solution that has a SafeControl entry.  When SharePoint unextends the Web Application, the IIS web site is cleaned up first, then the solutions are retracted.  This results in the web.config being cleaned up prior to the solution trying to remove its changes.

The error doesn’t cause anything to stop processing.  The remaining components of the solution are processed along with remaining solutions deployed to the Web Application, so you can ignore the message in this particular scenario.

Comments (2)
  1. Dilip Nikam says:

    Thanks Jerry for sharing this useful information.

    But in my case the Deployment status shows the "Error" text. So how we can know is there is any problem or not…?

  2. veda.selvam says:

    @Dilip Nikam – Same for me. Deployment fails with this error. How did you solve the issue?

Comments are closed.

Skip to main content