Scott Hanselman

Programmatically Mapping an IIS Vdir/AppPool to .NET Framework 2.0

September 25, '06 Comments [1] Posted in ASP.NET
Sponsored By

We needed to create an IIS Application and Virtual Directory programmatically and while we were doing this, ensure that the VDIR would run only under ASP.NET 2.0. We could certainly shell out to ASPNET_REGIIS.exe to do the work, but this would recycle the whole of IIS (basically every AppPool).

Scott Forsyth at ORCSWeb, my very awesome hosting provider, has an article on a simpler way to make this happen. (It's an older article and older code, but it does work on 2.0 with some simple mods)

It's pretty clever actually...he just spins through the scriptmaps and replaces the current ASP.NET version with the one he wants. The end result is that only that AppPool needs to reset, it's faster, and you don't need to shell out. Thanks ScottF!

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

NYTimes Reader - WPF's First Killer App

September 25, '06 Comments [8] Posted in Reviews
Sponsored By

Nytimesreader2Is it worth the prerequisite runtime installation of the .NET Framework 3.0? I think so. It was mistakenly "released" earlier this week, but only for @nytimes.com and @microsoft.com users. Today it's available to everyone.

Nytimesreader1The look and feel is very nice. The initial sync of content is a smidge slow, but it can be schedule and run in the tray. The NYTimes Reader can be run with just the arrow keys and page-up/down keys and includes the new scaling and text-flow techniques introduced by WPF which means it looks good on the largest or smallest of screens.

The same page appears in the left screenshot resized very small and to the right maximized. Notice the number of columns changes and the image adjusts to an appropriate position.

You can register (free) and download the NYTimes Reader yourself and enjoy. It's a great example of what WPF can do without being garish. It's a clean and elegant and ultimately newspaper-like experience, and it has full-screen mode - always a plus.

NytimesreaderiraqThe only think that could have made it a nicer experience would have been support for ClickOnce, but they apparently wanted their installer to warn the user about the need for the .NET Framework 3.0 and walk them through it, which I understand.

You might think, why download an app like this that only gets Times content? Well, there's a crapload of content and it just about justifies an app...you get the whole paper. But for me, this app is a harbinger of what the first awesome WPF RSS Reader should look like. If this is what  FeedDemon could do for my feeds (Nick, are you listening?) that would be utterly wonderful.

This app has just the right design, font style, font anti-aliasing and font scaling, to make reading a newspaper on your an enjoyable tasks. Go get it.

UPDATE: I just realized that this feels a lot like PointCast. I bet some of these young Web 2.0 kids don't remember PointCast and we'll see history repeat itself, this time with WPF and RSS.

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

TechEd Developers 2006 - Barcelona, Spain

September 25, '06 Comments [5] Posted in Speaking | TechEd
Sponsored By

Techeddev_2006_150x123_ibtTechEd Europe is brilliantly being split into two halves - TechEd Developers and TechEd IT Forum. What a freaking awesome idea. I hope they do it that way in the states next year.

I'll be doing Patrick and my talk from TechEd US, with a new name (changed from Dirty SOAP):

ARC308 Contraxploitation (Exploiting your Contracts): A Dynamic Web Services Endpoint without WCF 
Scott Hanselman - Thu Nov 9 15:45 - 17:00 
Not every large system in the wild can use .NET 2.0, ASMX and WCF. Often the real world isn't very pretty, or formal use of .NET ASMX Web Services doesn't lend itself to a particular solution. Corillian's software handles a quarter of the nation's retail banking online population with .NET. The system is built with a contract-first approach using WSDL and a custom binding to generate in-process service proxies. When it came time for Corillian to present their Operations as SOAP, we created a dynamic endpoint - WITHOUT ASMX. We then extended it to support POX (Plain Old XML). In this session, we discuss the architectural and design ramifications of managing a dynamic endpoint and how this decision will positively or negatively affect our move to WCF. 

I'll be showing a lot more code, as that was a bit of feedback from the US session that I'll incorporate into this one.

As an added bonus, Mo's new U.S. Passport came, as did Z's, so it'll be a family affair!

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

NewsGator Desktop Sync Beta (Windows RSS Platform / NewsGator Online Synchronization)

September 23, '06 Comments [6] Posted in Musings
Sponsored By

Ngossync1I just noticed this...NewsGator Desktop Sync Beta (download if you have IE7RC1/.NET 2.0 or VistaRC1 and a Newsgator Account.)

It's an applet that keeps the Common Feed Store and NewsGator Feed Store synchronized.

I haven't found a use/purpose for the Common Feed Store yet, but at least it's synchronized! Outlook 2007 will then synchronize that store with your PST version in outlook. That's a crapload of feeds in three places, eh?

It's beta, but it's cool of Newsgator to have a sync plan with what will likely become the defacto store for RSS feeds - the Microsoft Common Feed Store, even if it doesn't have a totally clear story for secure storage and retrieval of feeds yet.

One thing that is nice about the NewsGator Desktop Sync:

When a post is marked as read in IE7, that read state is sent right away to NewsGator Online. But if you mark a post as read in NewsGator Online, it will not be marked read in IE7 until the next time Desktop Sync does it's synchronization with NewsGator Online.

Personally I have a lot of trouble with NewsGator Online Sync. I run FeedDemon on three machines and often my feeds are randomly gray/disabled, or not grayed but stop updating, and sometimes, if rarely, disappear. I also find that the read state - the "what I've read and what I haven't" is out of sync a few times a week.

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

The Internet in Zimbabwe is collapsing

September 22, '06 Comments [4] Posted in Africa
Sponsored By

It's getting very hard to email folks in Zim lately...here's why:

"Zimbabwe's international satellite link has been cut off after the national telephone company failed to pay a $710 000 (about R5,4-million) debt in a move that experts warn could spell the collapse of the Internet in the country.

The managing director of Tel-One, the country's sole fixed line phone company, told the state-controlled Herald newspaper that the company had been disconnected from the key Intelsat link.

He added that Tel-One was rerouting Zimbabwe's Internet traffic through other means, resulting in a service slowdown. There are around 500 000 Internet users in the country of 11,6 million people."

Zimbabwe is neck-and-neck with Iraq on economic matters:

Zimbabwe is in its sixth year of economic recession, marked by inflation of more than 1200 percent, acute shortages of foreign currency, fuel and medicines, as well as spiralling poverty and social hardships.

That 1200% inflation number isn't a typo. It was close to 2300% for a while.

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.