Solved

asp.net application crashing on IIS 7.5 Win server 2008 R2

Posted on 2013-02-04
11
1,246 Views
Last Modified: 2013-06-10
Our asp.net is crashing when using Apache Bench to test it. using:
abs -n 100 -c 10 https://example.com/

Afterwards the application event seen below occurs, and IIS server has to be restarted.
I removed names and IP addresses to protect the innocent.
I ran a trace and show the results of the trace log error below the event

-----------------------------------------------------------
Application event seen:
-------------------------------------------------------------

Log Name:      Application
Source:        ASP.NET 2.0.50727.0
Date:          2/4/2013 3:05:00 PM
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      Computername
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2/4/2013 3:05:00 PM
Event time (UTC): 2/4/2013 8:05:00 PM
Event ID: e7edb2e182894411a195ff6afac13540
Event sequence: 282
Event occurrence: 3
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT-1-130044797473274000
    Trust level: Full
    Application Virtual Path: /
    Application Path: D:\inetpub\wwwroot\
    Machine name: Computername
 
Process information:
    Process ID: 1544
    Process name: w3wp.exe
    Account name: IIS APPPOOL\DefaultAppPool
 
Exception information:
    Exception type: Exception
    Exception message: Error initializing DAL.
 
Request information:
    Request URL: https://example.com:443/phgl-com-login-001.aspx?logintype=PRV
    Request path: /phgl-com-login-001.aspx
    User host address: 12.34.56.78
    User:  
    Is authenticated: False
    Authentication Type:  
    Thread account name: IIS APPPOOL\DefaultAppPool
 
Thread information:
    Thread ID: 3
    Thread account name: IIS APPPOOL\DefaultAppPool
    Is impersonating: False
    Stack trace:    at HealthIns.Web.Login.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details:

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 2.0.50727.0" />
    <EventID Qualifiers="32768">1309</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-02-04T20:05:00.000000000Z" />
    <EventRecordID>8376</EventRecordID>
    <Channel>Application</Channel>
    <Computer>Computername</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3005</Data>
    <Data>An unhandled exception has occurred.</Data>
    <Data>2/4/2013 3:05:00 PM</Data>
    <Data>2/4/2013 8:05:00 PM</Data>
    <Data>e7edb2e182894411a195ff6afac13540</Data>
    <Data>282</Data>
    <Data>3</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/1/ROOT-1-130044797473274000</Data>
    <Data>Full</Data>
    <Data>/</Data>
    <Data>D:\inetpub\wwwroot\</Data>
    <Data>Computername</Data>
    <Data>
    </Data>
    <Data>1544</Data>
    <Data>w3wp.exe</Data>
    <Data>IIS APPPOOL\DefaultAppPool</Data>
    <Data>Exception</Data>
    <Data>Error initializing DAL.</Data>
    <Data>https://example.com:443/phgl-com-login-001.aspx?logintype=PRV</Data>
    <Data>/phgl-com-login-001.aspx</Data>
    <Data>12.34.56.78</Data>
    <Data>
    </Data>
    <Data>False</Data>
    <Data>
    </Data>
    <Data>IIS APPPOOL\DefaultAppPool</Data>
    <Data>3</Data>
    <Data>IIS APPPOOL\DefaultAppPool</Data>
    <Data>False</Data>
    <Data>   at HealthIns.Web.Login.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
</Data>
  </EventData>
</Event>

------------------------------------------
Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   HealthIns.DAL.DALUtil..ctor() +138

[Exception: Error initializing DAL.]
   HealthIns.Web.Login.Page_Load(Object sender, EventArgs e) +3313
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
0
Comment
Question by:IX_LongBow
  • 5
  • 3
11 Comments
 
LVL 10

Expert Comment

by:gaurav05
ID: 38853943
Hi,

which operating system are you using windows 2008 R2 ?

if you using windows 2008 R2 then try to install service pack 1..


Also try this

http://support.microsoft.com/kb/941386
0
 
LVL 1

Author Comment

by:IX_LongBow
ID: 38854540
Thanks for responding. This is 2008 R2 with SP1 already. The article you posted doesn't appear to match my issue.
0
 
LVL 38

Expert Comment

by:Aaron Tomosky
ID: 38862450
First off, im not a developer but i maintain iis and work closely with devs so o may have some good thoughts but i could also be way offbase.  ;)

Does your app redirect to https for the login? Ab only works with http last I checked so it could be stuck in a redirect loop. Not that it's good for IE to crash this way...
It looks like your dal is in onload and it fails which wrecks everything.  If you moved it later in the flow it might let's the page load and just error on the data connection.
0
 
LVL 1

Author Comment

by:IX_LongBow
ID: 38880789
I am using the url rewrite filter to redirect http to https yes. I'm using apache bench 2.4.3 with the SSL option abs.exe
I'm not sure how to move the dal later in the flow. I need to work with developers on the application it sounds like. Guessing it's not simply an IIS configuration setting.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 38

Expert Comment

by:Aaron Tomosky
ID: 38880806
It could be a redirect loop to https like you said, that if ab has the http version it will never resolve. But that is then overloading the app because the dal connection is under "onload" so talk to the devs abou that. One purpose of stress testing is to identify issues like this.
0
 
LVL 1

Author Comment

by:IX_LongBow
ID: 38881420
I talked to the devs, and they don't know how to fix it. I'm in process of looking for an asp.net devoloper to assist. Thanks
0
 
LVL 38

Expert Comment

by:Aaron Tomosky
ID: 38881980
In the meantime, try messing with ab to just hit https and avoid the possible loop. You can also do less connections and see if you can find the breaking point
0
 
LVL 1

Accepted Solution

by:
IX_LongBow earned 0 total points
ID: 39222738
We ended up reverting the version of IIS to 6 on windows 2k3 until the developer can improve their code to support the newer pipeline method used in IIS 7.5 over classic mode which just seems to crash the worker process.
0
 
LVL 1

Author Closing Comment

by:IX_LongBow
ID: 39234094
Not much of a solution, but it fixes the problem
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now