Scott Hanselman

作者:Scott Hanselman 首席工程師

March 29, 2004 Comment on this post [2] Posted in ASP.NET | TechEd | Speaking
Sponsored By

Wow, I noticed something in my referrer log and it was a link to my site from Taiwan.  Someone (MSDN Taiwan presumably) translated my ASP.NET Scripting article into Chinese.  Very cool, and thanks!. 

More importantly, stolen from the bottom of the article, I now have my bio translated into Chinese!

Scott Hanselman 是 Corillian Corporation,一家提供電子金融服務的公司的首席設計師。他在以 C、C++、Visual Basic、COM 及目前的 Visual Basic .NET 和 C# 開發軟體方面擁有超過十年的相關經驗。Scott 非常榮幸在過去三年來受任 MSDN 俄勒岡州的波特蘭地區主管一職,並同時在波特蘭和西雅圖兩地發展 Developer Days 及 Visual Studio .NET 產品推出活動的內容並發表演說。Scott 另外還在四個城市的 Microsoft®Windows Server®2003 和 Visual Studio .NET 2003 產品推出活動中演講。他在國際間陸續發表跟 Microsoft 技術有關的演講,並與其他作者合著了兩本 Wrox Press 的書。在 2001 年,Scott 於全國 15 個城市巡迴演講有關 Microsoft、Compaq 和 Intel 採用 Microsoft 技術並傳佈良好的設計實例。今年 Scott 在太平洋西岸 4 個城市的 Windows Server 2003 產品推出活動、美國及馬來西亞的 TechED,以及奧蘭多的 ASPLive 中發表演說。有關他對於 .NET, 程式設計和 Web 服務的各項領悟,請參閱 http://www.computerzen.com/

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 bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

.NET in the Real World - the Regional Director Column launches

March 28, 2004 Comment on this post [0] Posted in Musings
Sponsored By

Yay!  The new Regional Director column called '.NET in the Real World' has launched on MSDN.  The inaugural column is by Billy Hollis.  I believe next month will be an update of my thoughts around the Myth of .NET Purity.  Check the column out for new content from a new Microsoft Regional Director every month!

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 bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

VSLive SFO Rocked...

March 28, 2004 Comment on this post [3] Posted in ASP.NET | Internationalization | Web Services
Sponsored By

What a blast at VSLive! this last week. 

Some highlights:

  • Gave three talks, one on Internationalization in ASP.NET, and 2 sessions of a 3 part series with Bill Evjen on 'Zen and the Art of Web Services.'  I will post slides and code later. 
  • Hanging out with Peter Blum (from PeterBlum.com - Validation and More and Peter's Date Package)
  • Introduced Peter to David Platt only to find out they both live in the same TINY Massachusetts town and have for the last 15 years.  And they run into each other with me in SFO.  Madness.
  • Saw my buddy and former Malaysian RD Loke Uei Tan.  Saw my friend Terk Sean :), but didn't get to hookup with her partner in crime Ramin Perumal. :( 
  • Had a guy come up to me, and the conversation went like this: Him: "You know Rory Blyth?" Me: "Ya" Him: "I'm dickhead!"  Me: "You're dickhead!" Him: "Yep."  Interestng conversation...here's a picture.
  • Saw Jon Box, Rocky LhotkaBilly Hollis, Chris Kinsman.
  • Hung out with Ron Jacobs the King of ShadowFax.  He took me to the airport on the way out using the Train, rather than using my brilliant 'taxi' idea. 
  • Had the best haute cuisine, as I always do when I'm in 'The City'

     

 

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 bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

I've got something big planned...stay tuned...

March 24, 2004 Comment on this post [6] Posted in TechEd
Sponsored 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 bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Load Balancing and ASP.NET

March 23, 2004 Comment on this post [2] Posted in ASP.NET | ViewState
Sponsored By

Deployed a site this weekend with much success.  A few things that one always needs to remember when putting out a "site" that's on more than one server ("box").

  • In-process Session State + More than One Web Server: If you're using in-proc Session on ASP.NET, remember that the session has "affinity" with the server.  That means that if www2.hanselman.com is the first server the user ever hits, the user will get an ASPSESSIONID cookie that is an index into the Cache object (the In-Proc Session is really just a key to a Hashtable-type structure inside the Cache/Application) that only exists in the memory of THAT ONE SERVER.  So, since you're using Load Balancing (you have more than one server) it's important to ensure you're using "sticky connections" or node-affinity to guarantee the user gets back to his/her session on the next HTTP Request. 
    Note that it's often tricky to get a user back to the same box when dealing with "mega-proxies" of large corporations, ISPs, and AOL.  That means that if your load-balancer (hardware or otherwise) is looking at various combinations of IP+VPORT+Whatever that these values MAY CHANGE if the ISP changes their source port or IP address.  If you're using SSL, you can use the SSL ID to route traffic, but this can slow you down a smidge.  You can also let the hardware loadbalancer add in a cookie of its own.  Check your loadbalancer's FAQ for details.  But, it's worth being aware of the things
  • Out-of-Proc (State Server) + More than One Web Server: If you are using the State Service, you might think about putting it behind your second firewall, in a different DMZ than both the Web Servers or the Database. 
  • Out-of-Proc State Server + ONLY ONE Web ServerSome folks use the Session State Service even if they have only one Web Server so the session state isn't lost when the ASPNET_WP.EXE process recycles.  If you do this, make sure to lock down the state service to serve local requests only.

    HKLM\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnections

    You can also change the port that the state service listens on with the following key:

    HKLM\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\Port

    If you're using the state server in a web farm, it's important that you put it behind a firewall or otherwise prevent anything but the web servers from talking to it. [Early and AdopterEarly and Adopter]

  • WebFarm Gotchas: When you're using either the State Service or SQL Server Session State, you're indicating that you don't want "session affinity" and you'll probably set your Load Balancer to Round-Robin dispatching of traffic. (It won't using any smarts or algorithms to get traffic, it will just go 1, 2, 3, etc.)  When you do this AND you're using Forms Authentication OR you have EnableViewStateMAC set to protect your ViewState, remember to synchronize your <machinekey> between all machines in the farm.  As users move around your site, each page could put served up from a different machine, meaning that not only are your encrypted forms-auth cookies passed around, but your ViewState (protected by the machinekey) may be sourced from one machine, and posted to another.

  • Security: Remember to secure the crap out of everything you do. 

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 bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

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