Cribbing from one of Imar's answers on a similar problem with code from another reader, this may be an IIS config problem:
http://p2p.wrox.com/topic.asp?TOPIC_ID=45742
"What I think is happening is that IIS is configured incorrectly, and is targeting the 1.x framework. To check this, open the IIS Manager, locate your site and open its Properties. Switch to the ASP.NET tab and make sure that version 2.0 is selected. Then try to run the site again."
If this doesn't solve it, let us know.
Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Blog:
http://wroxblog.typepad.com/
Jim's Book of the week:
No book this week - Donate to the Red Cross!