Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After installing 4.7.1, IIS AppPool stops with "Cannot read configuration file" #572

Closed
Adam-S-Daniel opened this issue Nov 27, 2017 · 6 comments

Comments

@Adam-S-Daniel
Copy link

After installing .Net Framework v4.7.1 on Windows 10-- either on its own or via the Fall Creators Update-- some IIS application pools persistently stop immediately after they are started. The following event is logged.

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
 <System>
  <Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" /> 
  <EventID Qualifiers="49152">2307</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>0</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x80000000000000</Keywords> 
  <TimeCreated SystemTime="[EVENT TIME]" /> 
  <EventRecordID>[EVENT RECORD ID]</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="0" ThreadID="0" /> 
  <Channel>Application</Channel> 
  <Computer>[COMPUTER NAME]</Computer> 
  <Security /> 
 </System>
 <EventData>
  <Data Name="ApplicationPool">[APP POOL NAME]</Data> 
  <Data Name="ConfigException">Cannot read configuration file</Data> 
  <Data Name="FileName">\\?\<EMPTY></Data> 
  <Data Name="LineNumber">0</Data> 
  <Binary>02000000</Binary> 
 </EventData>
</Event>

The following workaround, from this answer to the Stack Overflow question Cannot read configuration file ' trying to read configuration data from file '\?<EMPTY>', line number '0', resolves the problem:

  1. Go to the drive your IIS is installed on, eg. C:\inetpub\temp\appPools\
  2. Delete the directory (or virtual directory) with the same name as your app pool.
  3. Recycle/Start your app pool again.
@HongGit
Copy link
Member

HongGit commented Nov 27, 2017

This is a known issue with Fall Creators Update, see this KB.

@Adam-S-Daniel
Copy link
Author

So it is! Thank you for pointing that out. I have confirmed that my System log contains event WAS 5189, described in the KB article, concurrent with event shown above from my Application log, Microsoft-Windows-IIS-W3SVC-WP 2307. Adding the latter event to the KB article might make it more discoverable. Also, a commenter on the Stack Overflow answer linked above indicated the problem was triggered for him by installing .Net Framework v4.7.1. I do not know whether the commenter did so without installing the Fall Creators Update, but this may be worth investigating.

@HongGit
Copy link
Member

HongGit commented Nov 28, 2017

@shirhatti can you please comment?

@shirhatti
Copy link

@geeeyetee Installing .NET Framework 4.7.1 is just a red herring in your case. We've already fixed the Windows setup logic that resulted in these malformed symlinks that get created during your OS upgrade. Unfortunately, if you upgraded to Windows 10 Fall Creators Update prior to our fix going out, you'll hit this issue.

@IanKemp
Copy link

IanKemp commented Apr 4, 2018

I installed the Fall Creators Update two days ago and encountered this issue, so it is certainly not fixed.

@ghost
Copy link

ghost commented Apr 9, 2018

@shirhatti
I had got the same issue after installing Fall Creators Update 3 days ago. The issue was NOT fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants