Scott Hanselman

It's amazing what one can find - VS.NET 2005 ASP.NET web.config schema inconsistency shows some interesting stuff

October 19, '04 Comments [2] Posted in ASP.NET
Sponsored By

I'm working on some ASP.NET 2.0 stuff with 2.0 Beta 1 Refresh, and I noticed something. 

The web.config from a VB ASP.NET app is on the left.  The web.config from a C# ASP.NET app is on the right. Here's some thoughts:

  • We know the customProvider will allow one to write their own SQL Session Store.  This is known, but not documented yet.
  • lockAttributes is new. Not sure what that's about.
  • On the right, the C# web.config XSD is out of sync with the VB.NET web.config XSD, and we see a few new attributes.
    • regenerateExpiredSessionId - This new attribute will force a re-gen of any old session ids. Previous versions of ASP.NET would start a fresh session with the provided id remaining the same.
    • allowCustomSqlDatabase allows you to have more than one ASP.NET Session State database per box, and each Application can be assigned to one by specifying Initial Catalog= or Database= in the strangely missing sqlConnectionString attribute.

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

Team America: World Police/Nerd Dinner

October 16, '04 Comments [6] Posted in Movies
Sponsored By

Just got back from Team America: World Police, easily the most offensive and funniest movie since, well, South Park.  It was Chris's idea, and I'm glad he had it.  I literally wiped tears from my face twice during the film, and almost cramped up laughing.  Now, I'm dealing with the intense guilt of laughing at this intensely offensive movie. :) Go see it, but not if you never swear.

Here's the World Police, (L to R, I think this is correct) Stuart Celarier, Scott Meyers(?), Chris Tavares, Chris Sells, Rory Blyth, myself, Jim Blizzard, Ward Cunningham. Rich Claussen was no doubt getting popcorn at this time.

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

Programmatically determine what version of ASP.NET you're running

October 15, '04 Comments [1] Posted in ASP.NET
Sponsored By

Here's a goodness from Doug Seven and various KBs. Thanks! 

<html><body><h1><asp:Label ID="Output" RunAt="server" /></h1></body></html>

<script language="C#" runat="server">
void Page_Load (Object sender, EventArgs e) {

//Microsoft .NET Framework 1.0 (no service pack) 1.0.3705.000
//Microsoft .NET Framework 1.0 Service Pack 1 (SP1) 1.0.3705.209
//Microsoft .NET Framework 1.0 Service Pack 2 (SP2) 1.0.3705.288
//Microsoft .NET Framework 1.0 Service Pack 3 (SP3) 1.0.3705.6018

string servicePack = "";
if(Environment.Version.Build==3705)
{
  switch(Environment.Version.Revision)
  {
  case 209:
  servicePack = "SP1";
  break;
  case 288:
  servicePack = "SP1";
  break;
  case 6018:
  servicePack = "SP1";
  break;
  }
}
else if(Environment.Version.Build==4322)
{
  using(
  Microsoft.Win32.RegistryKey regKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\NETFramework Setup\NDP\v1.1.4322"))
  {
    if(regKey.GetValue("SP").ToString() =="1")
       servicePack = "SP1";
  }
}

//HKEY_LOCAL_MACHINE\Software\Microsoft\NET FrameworkSetup\NDP\v1.1.4322
Output.Text = String.Format ("This page uses ASP.NET {0}.{1} {2}", Environment.Version.Major, Environment.Version.Minor, servicePack);
}
</script>

Now playing: Alicia Keys - If I Was Your Woman/Walk On By

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

Indexing FireFox Browser History with Google Desktop

October 15, '04 Comments [0] Posted in Musings
Sponsored By

A few folks have complained that Google Desktop won't index the browser history of FireFox.  Google Desktop by groks IE history automatically. 

However, Chris Brooks, my boss, turned me on to to Slogger, a FireFox extension that automatically saves all your visited pages to a separate folder. 

This is then indexed by Google Desktop.  Yum.  It's got some great options as well.  Let's see how long it will take to fill up my hard drive.

Now playing: Alicia Keys - Karma

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

Sending in a Windows Crash Analysis (Error Reporting) actually paid off once

October 15, '04 Comments [2] Posted in Musings
Sponsored By

Well, that's a heck of a thing and the FIRST TIME it's ever happened to me.  I always thought I was just being a trooper to send in all my blue screens.  However, they solved one of them.  It was a bad IBM Wireless Driver. 

Note my highly descriptive comments as well.  I'm sure they helped the analysts. :)

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.