Scott Hanselman

Ending the Year with Obscurity: JIT Debugging failed with the following error

January 1, '04 Comments [1] Posted in ASP.NET | Bugs
Sponsored By

Here’s a yummy and odd thing.  I hooked up some global error handling in my big ASP.NET app.  I put it in two places. 

The first place was a handler for the Error event in the base class for all my pages.  I had a call to log4net to log the error and a Redirect that would show the user a friendly explanation of what went wrong.

The second place was the Application Error handler in Global.Asax.cs.  Same drill.  This handler is for errors that happen outside the scope of my base class (like ASHX files, etc).

Remember that the call to Redirect (Transfer in one case) was commented out for development.  It was commented out for months and months.  I uncommented it today.

Suddenly I started seeing this ominous dialog when running Visual Studio.NET.  NOTE: I said RUNNING VS.NET, not running the app.  I get this as soon as the CSProj gets loaded!  Eek!

This stumped me, as this dialog is the kind of thing you see when you’re not the DebuggerUsers Group, yada yada yada.  I googled some, and all the references to this dialog refer to permissions and such, and this was clearly not a permission thing as nothing had changed in that ‘hood.

Since I had log4net (glorious, BTW) hooked up, I setup the FileAppender to log all my copious Debug statements to a file.  I launched VS.NET and loaded the project.  Turned out some of my pages were being flat-out executed either as VS.NET asked for them from IIS or as they were loaded into the Designer (I’ve complained about this designer thing before).  In my Init() of a deep base class a I was checking Request.UserLanguages[0] for the user’s preferred language.  Yeah, I know, I didn’t check to see if [0] was there.  It always has been!  Well, apparently it’s not there when VS.NET calls with HTTP to IIS.

Long story short, a NullReferenceException occurred which was now CAUGHT by my Exception handler and I tried to call Response.Transfer which boogered up VS.NET who decided that Debugging was never going to work.  Preventing that exception stopped this strange VS.NET startup error.

Happy New Year!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Google Dance Syndrome

December 29, '03 Comments [0] Posted in ASP.NET | Bugs
Sponsored By

 Good stuff…just the thing my buddy Adam Cogan is looking for as he dances to the top of the charts!

You’ve used google before, but did you know they keep copies of their index around the world? And when the index is being updated, you can search on the same phrase at different times, and get different results. If you would like to see how that phrase looks across all clusters of their indexes, check out http://www.google-dance.com/
[Wanta .NET ?]

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Merry Christmas: Reunited

December 25, '03 Comments [3] Posted in Africa
Sponsored By

Merry Christmas folks.  After two and a half years apart my sister-in-law's husband, eight-year-old and three-year-old have finally joined us stateside.  Our little house has upped its number of occupants to 6.  They are in America to stay.  One day I'll tell you the story of their trip, but it included a bus breaking down 600 km away from Johannesburg on the way to meet their plane.  He hitchhiked with the two kids and 3 bags all the way to South Africa and made it to the plane in time.  After 26 total hours in a plane and 13 total layover hours (not to mention the 18 hour bus/hitchhiking experience) they are together at last.  It's truly the culmination of years of work on everyone's part.

Merry Christmas!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

God Bless us, and our THIRD MONITOR

December 22, '03 Comments [6] Posted in Reviews
Sponsored By

Everyone knows I'm ALL ABOUT the multiple monitors.  You simply can't be as productive at 1024x768.  I've said it before as has John Lam.  I busted my butt getting two monitors setup and also have sung the praises of the ABSOLUTELY neccessary UltraMon utility for >1 monitors.

But today, yes today my friends, I've found a use for my new TabletPC when I'm not using it - drum roll:

As a THIRD monitor!!!  Using an application called MaxiVista you run a tiny Viewer on your extra machine (whether it's a Tablet, laptop or another box) and then a Server on the machine you'd like to give another monitor to.  They hook up automagically and before you try to nay say that this is like Remote Desktop or VNC, note this: It installs as a VIRTUAL DISPLAY ADAPTER.  That means it shows up in the Windows Display Properties.  That means you have total control over resolution, orientation and position and Windows never knows the difference.  Freaking brilliant.

I fired up UltraMon and added a monitor-specific Taskbar.  UltraMon also adds that nifty button you see on the left there.  The button sits next to minimize and maximize and lets you toss windows left and right to other monitors. 

MaxiVista is only $39.95 until Dec 31st.  Sold.  $40 is a CHEAP third monitor.  I may pick up a copy for work as well and put a few old laptops to work.

God bless us, everyone! :)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.