IIS won’t start – Error 13: The data is invalid.

After restarting my virtual development machine IIS was not able to start anymore. I checked out if there is something reported to Event Viewer and I found the following error message –Error 12: The data is invalid. It turned out that during shutdown of my virtual machine IIS config file was ruined. Solution to my problem was very simple.

IIS configuration is in file c:\windows\system32\inetsrv\applicationHost.config. In my case this file was same by size as before but it was filled with null bytes. When changes are made to this file then previous version is backed up to c:\inetpub\history\ directory.

I copied last working configuration file from history directory to inetsrv directory and started www service. Luckily, everything works again.

If you need more specific description about this error then GrinGod blog has very good posting to read: When IIS Wont Start – Error 13.

Liked this post? Empower your friends by sharing it!

Gunnar Peipman

Gunnar Peipman is ASP.NET, Azure and SharePoint fan, Estonian Microsoft user group leader, blogger, conference speaker, teacher, and tech maniac. Since 2008 he is Microsoft MVP specialized on ASP.NET.

    4 thoughts on “IIS won’t start – Error 13: The data is invalid.

    • November 4, 2009 at 2:55 am
      Permalink

      The beset way is to re-install your IIS.

    • May 12, 2012 at 2:40 am
      Permalink

      i got this from an online soucreYes, Pure ASP Upload supports uploading large files on the Windows 2003 server. However:IIS6.0 prevent the upload of files more than +200Kb. So you need to make some changes in the default IIS settings first.BackgroundFor IIS6.0 users, the AspMaxRequestEntityAllowed property specifies the maximum number of bytes allowed in the entity body of an ASP request. If a Content-Length header is present and specifies an amount of data greater than the value of AspMaxRequestEntityAllowed, IIS returns a 403 error response.This property is related in function to MaxRequestEntityAllowed, but is specific to ASP request. Whereas you might set the MaxRequestEntityAllowed property to 1 MB at the general World Wide Web Publishing Service (WWW Service) level, you may choose to set AspMaxRequestEntityAllowed to a lower value, if you know that your specific ASP applications handle a smaller amount of data.SolutionOpen your metabase.XML which is located in c:\Windows\System32\Inetsrv find the line AspMaxRequestEntityAllowed and change it to 1073741824 . This is 1GB of course you can enter another value to suite your needs.NOTE: Before you edit the file, be sure to stop the IIS service first or else you won’t be able to save the file.

    • June 28, 2016 at 3:10 pm
      Permalink

      why can`t i find my inetpub sir ? please help me sir

    • July 4, 2016 at 8:37 pm
      Permalink

      Run IIS manager and see what is the physical folder of default site.

    Leave a Reply

    Your email address will not be published. Required fields are marked *