Upload
manishsg
View
214
Download
0
Embed Size (px)
DESCRIPTION
sdsds
Citation preview
5/9/2015 What is a Crash (technically)... in ASP.NET and what to do if it happens? - Rahul Soni's blog - Site Home - MSDN Blogs
http://blogs.msdn.com/b/rahulso/archive/2006/03/02/what-is-a-crash-technically-in-asp-net-and-what-to-do-if-it-happens.aspx 1/3
What is a Crash (technically)... in ASP.NET and what to do if it happens?7imRahulSoni 1 Mar 2006 8:15 PM
ManytimeswhiletroubleshootingperformancerelatedissuesinASP.NET/IISwefindthatcustomerscomeinsayingthattheASP.NETprocesscrashesnnumberoftimesaday,twoormore.Now,thequestionarises,thatisitreallyacrash,orsomeYellowcolorerrormessage(oraplain"Pagecannotbedisplayed"error)whichisshownontheclient'sbrowser?Well,astheysay,everythingthatglittersisnotgold.Onsimilargrounds,everyerrorthrownonthebrowserisnotacrash.Weneedtokeepmultiplethingsinminddependingonwhatexactlycouldhavecausedtheerror,andbeforewedecidetocallitacrash,weshouldknowwhat*exactly*isacrash!Intheforthcomingseriesunder"Performance"categoryofmyblog,IwilldiscussbasicsofCRASH,HANG,HIGHCPU,HIGHMEMORY,DEADLOCKandOUTOFMEMORYissues.
SymptomsPriortoIIS6,whenacrashhappeneditbroughtthedowntheIISandtheconnectionsremainedopen.Sotheclientbrowserstypciallyseeadisconnectedconnectionandshows"Pagecannotbefound"orsomesimilarerror.
Now,inIIS6WorkerProcessIsolationMode,HTTP.SYStakescareoftheconnectionsinthekernelmodeitself.Soevenifw3wp.execrashesforsomereason,theconnectionremainsandIISspawnsanewprocesstohandlefuturerequests.Eventually,clientbrowserswillnotshow"Pagecannotbefound"error.But,anyunsentresponsefromtheserverwillbelost.
IfyouopenyourEventVieweryoushouldfindasimilarErrorentryintheApplicationlog.
EventType:ErrorEventSource:ASP.NET1.1.4322.0EventCategory:NoneEventID:1000
5/9/2015 What is a Crash (technically)... in ASP.NET and what to do if it happens? - Rahul Soni's blog - Site Home - MSDN Blogs
http://blogs.msdn.com/b/rahulso/archive/2006/03/02/what-is-a-crash-technically-in-asp-net-and-what-to-do-if-it-happens.aspx 2/3
16)Click"Next","Next"and"Finish"17)EnsurethatthestatusDebugDiagnostictoolsays,"Active"
18)Waitfortheissuetooccur.19)Iftheissuehappensagain,youshouldbereadywithadump.TheUserdumpPathinthescreenshotabovewillshowyouthepathwherethedumpfilesaregenerated.20)Now,themajorpartofcollectingthedumpisdone.Toanalyzeit,gototheDebugDiagnosticToolonceagain,andclick"AdvancedAnalysis"tab.21)Click"AddDataFiles"andbrowsetothedumpfile(.dmpextension,intheformataspnet_wp__PIDxxxxxxxx.dmporw3wp__PID__2716xxxxxxxx.dmp)22)Inthe"AvailableAnalysisScripts"selectCrash/HangAnalyzersandclick"StartAnalysis"23)Itmighttakesometimetoanalyzeyourdumpfile,sincethetoolwilltrytodownloadsymbols(moreonthislater)fromtheinternet.24)Oncetheanalysisiscompleteitwillcreatea.mhtfileandopenabrowserautomaticallyshowingtheanalysis.25)Youmighttakealookintothereportandifyouarefortunateenough,youwillfindtheissuerightaway!!
Intheothercase,pleasevisitthefollowinglinkandchooseappropriatesupportoptionsuitedtoyourneed.Wewillbemorethanhappytoassistyou!http://www.microsoft.com/services/microsoftservices/srv_support.mspx
Hopethathelps!
DebugDiagCrash.GIFComments
Sean Gahan 2 Mar 2006 12:04 PMRahul, Thank you for the info; I found it very informative. I have a question though it is a little offtopic. I use VS2003 along with Source Safe and ASP.NET does this thing that is very annoying;whenever I switch the aspx page from html to design and the page is under source control, Iam prompted to check out the page. If the Source Safe checkout prompt only happened everyonce and a while that would be one thing, but since it happens dozens of times a day it hasbecome very annoying. While I am complaining, I have one more issue. Occasionally when Iam using the design view for a page the cursor/mouse will get stuck in a part of the page.Kind of like the mouse gets stuck inside a table and you can only move inside the area of thetable; that one is annoying too. Anyway, thanks for your post I found it useful, as well as yourother post on Datagrids. By the way check out this link, it has Ajax updating a Datagrid; itspretty cool: http://aspalliance.com/773
Best regards,
Sean Gahan
imRahulSoni 2 Mar 2006 8:13 PMVSS checkout could be annoying at times and I can understand that, but as a developer Imade it a habit to organize my work and checkout the files (which I needed for that session)at one shot. And once I am done with the development, Check 'em all IN, at once. It workedmost of the times for me and had added advantage that no other person could check outthat file in the meantime.
But honestly, I have never seen that "mouse stuck" issue before. Although, I would like toknow that what happens if you use shortcuts, like F7 to go the code view and Shift+F7 to goback to the design view. Does it still remain stuck??
Sean Gahan 3 Mar 2006 12:27 PMRahulso, Your solution for checking out several items at once would work, but my question is why ithappens in the first place. Why is it when I wish to view a page in design mode that is undersource control I get prompted. What happens to the document when you switch to that view?Also, the F7 is a good tip; I will try that next time.
Best regards,
Sean Gahan
Sean Gahan 4 Apr 2006 2:23 PMOk, it happened again; the cursor got stuck inside a table while I was using the design modewhile working on an asp.net page. Your suggestion of switching to the code (+/ Shift+F7) didnot work, and I also tried switching to the HTML view (Ctrl+PgDn) and that did not work either.What did work was the Windows key + M to minimize all.
Best regards,
5/9/2015 What is a Crash (technically)... in ASP.NET and what to do if it happens? - Rahul Soni's blog - Site Home - MSDN Blogs
http://blogs.msdn.com/b/rahulso/archive/2006/03/02/what-is-a-crash-technically-in-asp-net-and-what-to-do-if-it-happens.aspx 3/3
Sean Gahan
ultranomad 3 Jul 2007 10:00 AMHow come I am getting IIS 6.0 error on IIS 5.0 with ASP .NET 2.0?
imRahulSoni 3 Jul 2007 4:48 PMHi ultranomad,
I am afraid, I didn't get your issue. What is the error message which you see?
JerryZhao 6 Aug 2007 10:02 AMPostProductionDebuggingforASP.NETApplications
Options