"503 - Service Unavailable" and "Load User Profile"
Yesterday, I was kinda irritated after my site hosted on my local IIS7.5 suddently started me giving "Service Unavailable" error. I knew, I did not had made any changed neither did I install any updates or stuff. But I was fooling around with my windows Users profile a bit.
So here is what I found after a little troubleshooting and I thoght it would be good to share it here.
I was getting these kind of erros in the windows event logs.
Something got beaten up with my profile which I still need to research further.
==============
system logs
==============
Log Name: System
Source: Microsoft-Windows-WAS
Date: 04-01-2012 18:50:19
Event ID: 5022
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: TijuJohn-PC.xxxxchn.local
Description:
The Windows Process Activation Service failed to create a worker process for the application pool 'Default'. The data field contains the error number.
Event Xml:
<Event xmlns="https://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-WAS" Guid="{524B5D04-133C-4A62-8362-64E8EDB9CE40}" EventSourceName="WAS" />
<EventID Qualifiers="32768">5022</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2012-01-04T13:20:19.000000000Z" />
<EventRecordID>19631</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>System</Channel>
<Computer>TijuJohn-PC.xxxxchn.local</Computer>
<Security />
</System>
<EventData>
<Data Name="AppPoolID">Default</Data>
<Binary>02000780</Binary>
</EventData>
</Event>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Log Name: System
Source: Microsoft-Windows-WAS
Date: 04-01-2012 18:50:19
Event ID: 5022
Task Category: None
Level: Warning
Keywords: Classic
User: N/A
Computer: TijuJohn-PC.xxxxchn.local
Description:
The Windows Process Activation Service failed to create a worker process for the application pool 'Default'. The data field contains the error number.
Event Xml:
<Event xmlns="https://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-WAS" Guid="{524B5D04-133C-4A62-8362-64E8EDB9CE40}" EventSourceName="WAS" />
<EventID Qualifiers="32768">5022</EventID>
<Version>0</Version>
<Level>3</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2012-01-04T13:20:19.000000000Z" />
<EventRecordID>19632</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>System</Channel>
<Computer>TijuJohn-PC.xxxxchn.local</Computer>
<Security />
</System>
<EventData>
<Data Name="AppPoolID">Default</Data>
<Binary>02000780</Binary>
</EventData>
</Event>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Log Name: System
Source: Microsoft-Windows-WAS
Date: 04-01-2012 18:50:20
Event ID: 5002
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: TijuJohn-PC.xxxxchn.local
Description:
Application pool 'Default' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
Event Xml:
<Event xmlns="https://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-WAS" Guid="{524B5D04-133C-4A62-8362-64E8EDB9CE40}" EventSourceName="WAS" />
<EventID Qualifiers="49152">5002</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2012-01-04T13:20:20.000000000Z" />
<EventRecordID>19636</EventRecordID>
<Correlation />
<Execution ProcessID="0" ThreadID="0" />
<Channel>System</Channel>
<Computer>TijuJohn-PC.xxxxchn.local</Computer>
<Security />
</System>
<EventData>
<Data Name="AppPoolID">Default</Data>
<Binary>
</Binary>
</EventData>
</Event>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
=================
Application logs
=================
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Date: 04-01-2012 18:50:20
Event ID: 1500
Task Category: None
Level: Error
Keywords:
User: IIS APPPOOL\Default
Computer: TijuJohn-PC.xxxxchn.local
Description:
Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly.
DETAIL - The system cannot find the file specified.
Event Xml:
<Event xmlns="https://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
<EventID>1500</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2012-01-04T13:20:20.111076300Z" />
<EventRecordID>22901</EventRecordID>
<Correlation />
<Execution ProcessID="120" ThreadID="3824" />
<Channel>Application</Channel>
<Computer>TijuJohn-PC.xxxxchn.local</Computer>
<Security UserID="S-1-5-82-600268399-1120027035-1681634044-127933913-1153483023" />
</System>
<EventData>
<Data Name="Error">The system cannot find the file specified.
</Data>
</EventData>
</Event>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Date: 04-01-2012 18:50:20
Event ID: 1511
Task Category: None
Level: Error
Keywords:
User: IIS APPPOOL\Default
Computer: TijuJohn-PC.xxxxchn.local
Description:
Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.
Event Xml:
<Event xmlns="https://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
<EventID>1511</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2012-01-04T13:20:20.111076300Z" />
<EventRecordID>22900</EventRecordID>
<Correlation />
<Execution ProcessID="120" ThreadID="3824" />
<Channel>Application</Channel>
<Computer>TijuJohn-PC.xxxxchn.local</Computer>
<Security UserID="S-1-5-82-600268399-1120027035-1681634044-127933913-1153483023" />
</System>
<EventData>
</EventData>
</Event>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Date: 04-01-2012 18:50:20
Event ID: 1515
Task Category: None
Level: Error
Keywords:
User: IIS APPPOOL\Default
Computer: TijuJohn-PC.xxxxchn.local
Description:
Windows has backed up this user profile. Windows will automatically try to use the backup profile the next time this user logs on.
Event Xml:
<Event xmlns="https://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
<EventID>1515</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2012-01-04T13:20:20.111076300Z" />
<EventRecordID>22899</EventRecordID>
<Correlation />
<Execution ProcessID="120" ThreadID="3824" />
<Channel>Application</Channel>
<Computer>TijuJohn-PC.xxxxchn.local</Computer>
<Security UserID="S-1-5-82-600268399-1120027035-1681634044-127933913-1153483023" />
</System>
<EventData>
</EventData>
</Event>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
So apparently there is one setting in Application pool advanced setting called "Load User Profile" which is a boolean.
So what is the quick fix, You guessed it right. Change the value to 'false'.