Error In Applicationhost.config
a comment Go to comments Recently one of my SharePoint WFE's servers applicationHost.config files became corrupted on the server. Not sure how it happened or what caused it. Might have been when I was trying to re-provision the User Profile Service Application. Anyways IIS7 was erroring out with the error below when I tried to access the websites and application pools. So all websites and web applications were unavailable. The Windows Process Activation Service encountered an error trying to read configuration data from file ‘\\?\C:\Windows\system32\inetsrv\config\applicationHost.config’, line number ’1′. The error message is: ‘Configuration file is not well-formed XML’ When browsing to: C:\Windows\system32\inetsrv\config\applicationHost.config I noticed that the applicationHost.config files size was 0kb. What?! After opening up the file I noticed it was wiped clean. Something went terribly wrong. Luckily IIS7 automatically keeps the history of the applicationHost.config file every time there is a change in IIS7. To access the history of the applicationHost.config file. 1. Browse to C:\inetpub\history directory 2. Inside this directory you will find the history of all the applicationHost.config file. 3. Pick a applicationHost.config file that you know is not corrupted. I usually pick one a few hours back to be safe. 4. Copy the applicationHost.config file and paste it into the C:\Windows\system32\inetsrv\config directory, replacing the corrupted file. 5. Now attempt to access IIS7 again. This time IIS7 should open, and you should be able to access all your sites and web apps. Thanks IIS7 for your history directory. Rate this:Like this:Like Loading... Related Categories: SharePoint Problems/Issues Tags: Fixing Corrupted applicationHost.config file in IIS 7 Comments (18) Trackbacks (0) Leave a comment Trackback Richard Garside (@_richardg) November 27, 2012 at 1:16 pm Reply Thank you so much!!! Thought I was going to spend all afternoon fixing this, but this has saved me. zz February 5, 2013 at 12:55 am Reply thank you very much! Chandra Kumar September 20, 2013 at 6:56 pm Reply thank you very much ,it solved my issue Mike Steklac October 8, 2013 at 4:03 pm Reply Thanks for the informative post. Any ideas how the file was blanked out? David October 8, 2013 at 8:50 pm Reply Amen to the other posts! Thank you! Jake November 13, 2013 at 8:12 pm Reply Thank You!! R
Latest Articles Latest Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL https://shipoint.com/2012/03/27/fixing-corrupted-applicationhost-config-file-in-iis-7/ Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff http://www.codeproject.com/Tips/630880/Recover-IIS-When-ApplicationHost-config-is-Ruined communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Articles » Web Development » ASP.NET » Howto Tip/TrickBrowse CodeStatsRevisions (3)Alternatives Comments (1) Add your ownalternative version Tagged as .NETWindowsASP.NETSysAdminDev Stats 20.6K views4 bookmarked Posted 2 Aug 2013 Recover IIS When ApplicationHost.config is Ruined Zhuyun Dai, 2 Aug 2013 CPOL 5.00 (4 votes) 1 2 3 4 5 5.00/5 - 4 votesμ 5.00, σa 1.10 [?] Rate this: Please Sign up or sign in to vote. Introduce how to recover IIS when it is broken by bad editing to applicationHost.config Issue Description Sometimes we have to manually modify applicationHost.config. It is risky because bad editing canruin the file and cause IISto be broken. IIS cannot recover even after we have fixed the err
360 games PC games https://support.microsoft.com/en-us/kb/958645 Windows games Windows phone games Entertainment All Entertainment https://kb.plesk.com/en/114206 Movies & TV Music Business & Education Business Students & educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet error in Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All error in applicationhost.config Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft
& Site Management Integration Options Developers eMail Components CloudLinux Extensions Extension Catalog Submit your Extension Plans & Pricing Support Resources FAQs Forums Knowledge Base Documentation Downloads Plesk University Release notes Blog Become a Partner Russian German French Spanish Chinese Japanese Italian Language English Russian German French Spanish Chinese Japanese Italian any Search Sites are down – IIS configuration Error. Article ID: 114206, created on Jun 26, 2012, last review on Jan 31, 2015 Applies to: Plesk 12.0 for Windows Plesk 11.5 for Windows Symptoms The IIS service does not respond. Websites and the Control Panel are down. The following error is shown in IIS Manager: Filename: \\?\C:\Windows\System32\inetsrv\config\applicationHost.config Error: Cannot write configuration file Or: There was an error while performing this operation. Details: Filename: \\?\C:\Windows\system32\inetsrv\config\applicationHost.config Line number: 1517 Error: Configuration file is not well-formed XML Note: The file path may differ from the above examples. Cause This issue may occur if there is not enough disk space on the server. The file path may vary from the one above, but, essentially, the error means that IIS has failed to write to one of its configuration files ('C:\Windows\System32\inetsrv\config\applicationHost.config' in the above example). Resolution Free up some disk space and restore the latest IIS configuration backup. Example commands for IIS 7: cd %windir%\System32\inetsrv C:\Windows\System32\inetsrv>appcmd list backup BACKUP "CFGHISTORY_0000000054" BACKUP "CFGHISTORY_0000000055" … BACKUP "CFGHISTORY_0000000062" C:\Windows\System32\inetsrv>appcmd restore backup CFGHISTORY_0000000062 Restored configuration from backup "CFGHISTORY_0000000062" NOTE: The file at the bottom of the list is usually the latest one. However, to confirm this, you may check the creation date. The backups are stored in 'C:\Inetpub\history' by default. If your restoration fails with the following error: ERROR ( hresult:80070005, message:Command execution failed. Access is denied. ) Disable the 'Read Only' attribute on the 'C:\Windows\System32\inetsrv\config\schema\rewrite_schema' file. Restart IIS after restoring the configuration: iisreset /restart Search Words applicationhost.config was blank Cannot write configuration file cannot start service w3svc on computer asd Migration Request migration IIS error applicationHost.config Configuration file is not well-formed XML Error: Connection to host is not available or migration agent is not runnin