Scott Hanselman

Professional ASP.NET 2.0 - Coming VERY soon!

October 7, '05 Comments [20] Posted in ASP.NET | Learning .NET | XML | HttpHandler | Web Services | Bugs
Sponsored By

Bill Evjen beat me to it, but it's true, the big Professional ASP.NET 2.0 book we've been working on for longer than you know is coming out in the next 2 weeks!

UPDATE: Madness! There's a sale on all Wrox/Wiley books at BookPool, and consequently you can pre-order our book for 50% off. Not sure how long that will last.

It's chock full of good information - well over a 1000 pages - and I think you'll enjoy it.

Here's the Table of Contents. I know that I hate buying a book when I only really need just a few chapters. We tried to pack a great deal of information into this book with enough broad strokes to make the beginner developer have to work at it, while the advanced developers still get valuable new details in each chapter.

Introduction.
1. Hello ASP.NET 2.0!
2. Visual Studio 2005.
3. Application and Page Frameworks.
4. ASP.NET Server Controls and Client-Side Scripts.
5. ASP.NET Web Server Controls.
6. ASP.NET 2.0 Web Server Controls.
7. Validation Server Controls.
8. Working with Master Pages.
9. Themes and Skins.
10. Collections and Lists.
11. Data Binding in ASP.NET 2.0.
12. Data Management with ADO.NET.
13. Working with XML.
14. Site Navigation.
15. Personalization.
16. Membership and Role Management.
17. Portal Frameworks and Web Parts.
18. Security.
19. State Management.
20. Caching.
21. Debugging and Error Handling Techniques.
22. File I/O and Streams.
23. User Controls, Server Controls, Modules, and HttpHandlers.
24. Using Business Objects and Interoperability.
25. Mobile Development.
26. Building and Consuming XML Web Services.
27. Configuration.
28. Administration and Management.
29. Packaging and Deploying ASP.NET Applications.
Appendix A: Visual Basic 8.0 and C# 2.0 Language Enhancements.
Appendix B: ASP.NET Resources.
Index.

It was tech-edited by such .NET luminaries as J. Michael Palermo who personally beat the crap out of me and made my chapters that much better. To all the editors, reviewers, and tech editors who responded to my IMs and 3am emails, and to my wife who put up with me up late for over a year, I thank you. To Bill and Devin, thanks for working so hard and including me in this project that we all started well over a year ago (and Bill nearly 2 years!) To Farhan and Srini who each contributed content and reviewed much, thanks for reviewing my code and for the opportunity to review yours.

I hope you guys enjoy it. We worked really hard.

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

Windows Pre-Login Wallpaper

October 6, '05 Comments [10] Posted in Musings
Sponsored By

PreloginIt's often useful to put information on the wallpaper of a Virtual Machine, or any Windows machine for that matter, that appears pre-login.

Put the full path in HKEY_USERS\.DEFAULT\Control Panel\Desktop\Wallpaper (string) via RegEdit. You can also set tiling on or off using the TileWallpaper (0|1) key in the same tree.

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 Submit button on ASP.NET pages does not work after .NET Framework 1.1 SP1 (works in FireFox, not in IE)

October 5, '05 Comments [0] Posted in ASP.NET | DasBlog | Bugs
Sponsored By

This is an oldie, but a goodie. A dasBlog user indicated that his IE users couldn't leave comments while his FireFox users could. This reminded me of this Q889877 bug.  ASP.NET SP1 sometimes boogers up the client-side WebValidation scripts and you have to run "aspnet_regiis -c" to reimpose them.

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

ASP.NET - The check of the signature failed for 'MyAssembly'

October 4, '05 Comments [2] Posted in ASP.NET | XML
Sponsored By

When you're using a delay-signed strongly-named assembly in ASP.NET you might get this error:

Configuration Error  

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: The check of the signature failed for assembly 'MyAssembly'.
Source Error:

Line 229:        <add assembly="System.EnterpriseServices, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 230:        <add assembly="System.Web.Mobile, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Line 231:        <add assembly="*" />
Line 232:      </assemblies>
Line 233:    </compilation>

Source File: c:\windows\microsoft.net\framework\v1.1.4322\Config\machine.config    Line: 231

Even if you've set up verification skipping with sn.exe -Vr, you'll need to restart the ASP.NET worker process before it takes effect as the information is only read when the process is first started.

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

ACTION REQUIRED: DasBlog Alert! Referral BlackList has changed!

October 4, '05 Comments [6] Posted in DasBlog | Tools
Sponsored By

TurnoffblacklistACTION REQUIRED - DasBlog Alert: Pass the word on.

UPDATE: 6-Oct-2005 4:00PM

Jay has added a second post clarifying the first. It is not generally believed that DasBlog is the cause of these problems. However, I've pulled the current DasBlog releases while we update it to work around the now-missing MT-BlackList.

An update has also been posted regarding the "original bad programmers" post.

UPDATE: 5-Oct-2005 6:00PM

Jay Allen's recent blog post includes word from Jay that he believes DasBlog is in some part responsible for his bandwidth issues and the resulting end of the BlackList. If this is true, it's profoundly sad. He says "That person is the developer for one of the tools responsible for driving me insane." That person being Omar and I.

DasBlog request(ed) the MT-BlackList only during site startup (seeding, as is recommended) and then subsequently sent an If-Modified-Since HTTP header using the file time which resulted in HTTP 304 Not-Modified headers to be sent back from Jay's site. DasBlog doesn't request the BlackList thousands of times a day.

I am saddened to hear that Jay's been fighting this battle with our, and persumably other, blogging software. If he had left a comment on our SourceForge site or emailed any of the many developers, we'd have changed the retrieval pattern.

Others are blogging that this is representative of bad programmers. Perhaps. Perhaps a breakdown in communication as well. It's true that DasBlog is an Open Source application, created by a number of contributors, myself included. The source is, and has been, public. I suppose as DasBlog's current Project Managers Omar and I should have reviewed the code more? It's public code, and its out there.

To be clear, Jay provided a fantastic barrier between the Spammers and the Bloggers. He did it out of the kindness of his heart, and his contribution is indelible. If DasBlog indeed quickened the MT-BlackList's demise it is unfortunate.

Had anyone mentioned it to any of the team at any point in the months since we added this feature it'd have been fixed within hours.

- Scott

Jay Allen, the guy who maintains and hosts the Referral/Comment Spam Blacklist that DasBlog users use has started banning IP addresses. This is presumably to save bandwidth. However, when the ban happens, he returns an HTML document with details as HTML comments rather than an HTTP 302 Redirect. DasBlog then uses this to build its a Regular Expression. This resulting RegEx will match more referrals than you'd like and can mess up your blog stats. He's also introduced (apparently a while ago) a diff file as a way to mitigate the bandwidth problem.

You can tell if you have this problem if the blacklist.txt file in your /SiteConfig folder is less than 1KB.

The setting to turn off in site.config is <EnableMovableTypeBlackList>false</EnableMovableTypeBlackList> as seen in the screen shot above. If you don't have this setting, or this file then you're not affected.

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.