« Previous Next »

Thread: Cannot start service W3SVC

Last post 12-29-2008 3:18 PM by anilr. 10 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (11 items)

Sort Posts:

  • 04-27-2008, 2:28 AM

    • JeffLeese
    • Not Ranked
    • Joined on 08-19-2006, 11:58 PM
    • Posts 9

    Cannot start service W3SVC

    I have a problem where I cannot start IIS. Here's a bit of the history for context. 

    I was trying to install frontpage services so I could edit an IIS 7 website from Visual Studio 2008 under Vista, and I ended up installing the AdminPack and installing a patch to use frontpage extensions. Then I found IIS wouldn't start.

    If I try to start IIS, it responds "Cannot start service W3SVC on computer '.'."

    Then I found this post (http://forums.iis.net/p/1147325/1860856.aspx#1860856) that suggests running "net start was"

    When I do this I get the result:

    The Windows Process Activation Service service could not be started.

    A system error has occurred.

    System error 13 has occurred.

    The data is invalid.

    Any ideas on how to get this (W3SVC) going, or how to correct error 13?

     

     

  • 04-27-2008, 2:32 PM In reply to

    • JeffLeese
    • Not Ranked
    • Joined on 08-19-2006, 11:58 PM
    • Posts 9

    Re: Cannot start service W3SVC

    When I ran "C:\windows\system32\inetsrv\appcmd.exe list apppools

    I got error < message:configuration error

    Filename: \\?\C:\windows\system32\inetsrv\config\applicationhost.config

    Line Number: 784

    Description: Configuration file is not well-formed XML

     

    Then when I check applicationhost.config I found that line 784 is the last line of the file! Actually the last line is 783, which is </configuration>. So I tried removing the last empty line 784, but then appcmd says the error is on line 783. I'm no further ahead.

  • 04-27-2008, 2:49 PM In reply to

    • JeffLeese
    • Not Ranked
    • Joined on 08-19-2006, 11:58 PM
    • Posts 9

    Re: Cannot start service W3SVC

    In the System Event Log, WAS generates the following error:

    Source:        Microsoft-Windows-WAS
    The Windows Process Activation Service failed to generate an application pool config file for application pool '*'. The error type is '0'. To resolve this issue, please ensure that the applicationhost.config file is correct and recommit the last configuration changes made. The data field contains the error number.

      <EventData>
        <Data Name="AppPoolID">*</Data>
        <Data Name="ErrorType">0</Data>
        <Binary>0D000780</Binary>
      </EventData>
    </Event>

     Are these errors making sense to anyone familiar with IIS?

  • 04-28-2008, 6:12 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Cannot start service W3SVC

    You may have to match xml tags to figure out where there is an unmatched tag - most editors (even modern vi) have functionality to match tags etc.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 05-02-2008, 4:43 AM In reply to

    • JeffLeese
    • Not Ranked
    • Joined on 08-19-2006, 11:58 PM
    • Posts 9

    Re: Cannot start service W3SVC

    I viewed the file in Visual Studio, which I understand will indicate unclosed tags with a red wavy underline. But it did not indicate any errors or problems with the xml.

     

  • 05-02-2008, 5:13 AM In reply to

    • JeffLeese
    • Not Ranked
    • Joined on 08-19-2006, 11:58 PM
    • Posts 9

    Re: Cannot start service W3SVC

    Is there any way to discover what IIS interprets as the problem with the applicationHost.config file? I mean, it says its not well formed, and indicates the last line. So your suggestion that it has an unclosed tag, made sense. But now that I've checked and found that all the tags are closed (visual studio reads it as xml ok) then one needs to did deeper to find the problem. But where would this be reported?

    I tried to upload the file to this post (several times) but Internet Explorer crashes everytime I paste in the text. It becomes unresponsive as soon as I paste, but then reports that a script is running that is causing the computer to run slowly, and may cause it to stop.

     

  • 05-03-2008, 11:44 PM In reply to

    Re: Cannot start service W3SVC

    did you check out line 784 ?

     

    Filename: \\?\C:\windows\system32\inetsrv\config\applicationhost.config

    Line Number: 784

    Description: Configuration file is not well-formed XML

    Cheers,
    Bernard Cheah
  • 05-07-2008, 12:45 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Cannot start service W3SVC

    Can you e-mail me your applicationhost.config file at anil (dot) ruia (at) microsoft (dot) com and I can look at it.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 05-12-2008, 9:30 AM In reply to

    Re: Cannot start service W3SVC

    I am sorry for my bad English.

    Your problem solution:

    1. Open the "applicationHost.config" file.

    2. Find the last application name (before problem) this file and remove related line and save the file.

    Example:

    <sites>

        <site name="Default Web Site" id="1" serverAutoStart="true">

            <application path="/">

                <virtualDirectory path="/" physicalPath="%SystemDrive%\inetpub\wwwroot" />

            </application>

            <application path="/YourLastApplicationName">

                <virtualDirectory path="/" physicalPath="c:\inetpub\wwwroot\yourvirtualdirectory" />

            </application>

    ...

    3. Start the "World Wide Web Publishing Service"

     

  • 12-26-2008, 5:00 PM In reply to

    Re: Cannot start service W3SVC

    I read the thread and your ability to assist another person by reviewing their applicationHost.config file. I was wondering if you could do the same.

     I have a Windows 2008 single server domain running Exchange 2007 with Sharepoint Server 2007. Everything has been peachy until about a week ago.

     I tracked it down to IIS 7 not starting because of a malformed XML error inside of my applicationHost.config file.

     Thanks in advance,

     Andrew

  • 12-29-2008, 3:18 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Cannot start service W3SVC

    For invalid xml errors, you can use an xml editor like visual studio or xml notepad to figure out where the xml is malformed.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (11 items)
Microsoft Communities