Want to Win a Copy of Professional Enterprise .NET?

Posted by: Imar Spaanjaars at Sunday, November 29, 2009 11:53:54 AM in: Imar's Blogs

Due to some confusion and delays at the publisher, I ended up with two review copies of Professional Enterprise .NET by Jon Arking and Scott Millett, the book I recently reviewed on this web site.

Read on ...

Book Review: Professional Enterprise .NET

Posted by: Imar Spaanjaars at Sunday, November 29, 2009 10:58:02 AM in: Book Reviews
Prior to reading Professional Enterprise .NET by Jon Arking and Scott Millett, I read Scott's Wrox Blox titled "NHibernate with ASP.NET Problem–Design–Solution" which I found to be an excellent introduction to using NHibernate. If you haven't read that eBook yet, and you're interested in learning NHibernate, check it out at the Wrox web site; at a price of under 10 dollar, it's money very well spent. Considering Scott's writing style and the depth of information found in the Blox, I was having high expectations of the book Professional Enterprise .NET. Having read it now, I can say I am certainly not disappointed.
Read on ...

Using the ASP.NET Login Controls with Mail Servers that Require SSL

Posted by: Imar Spaanjaars at Saturday, November 28, 2009 7:54:28 PM in: ASP.NET 3.5
Some of the Login controls that ship with ASP.NET, such as CreateUserWizard, ChangePassword and PasswordRecovery enable you to send e-mail to your users without writing a lot of code. You just drag and drop a control, assign a mail body template and you're pretty much done. However, as soon as your mail server requires you to use SSL (as, for example, GMail does), things become a little trickier. In this short article I'll show the code and configuration needed to send mail to servers that require SSL.
Read on ...

My New Project - Beginning ASP.NET 4

Posted by: Imar Spaanjaars at Sunday, October 25, 2009 4:21:02 PM in: Imar's Blogs
I meant to announce my new project earlier, but once again, Amazon and the official Wiley site beat me to it.
Read on ...

TFS for the Masses!

Posted by: Imar Spaanjaars at Sunday, October 25, 2009 4:01:08 PM in: Imar's Blogs
Together with beta 2 of Visual Studio 2010, Microsoft released Team Foundation Server 2010 Beta 2 - Microsoft's team collaboration platform for team portals, version control, work-item tracking, build management, process guidance, and business intelligence. Previously, TFS required a very expensive license and as such was only affordable by larger companies.
Read on ...

Got the MVP Award Again!!

Posted by: Imar Spaanjaars at Thursday, October 1, 2009 5:08:11 PM in: Imar's Blogs
Woohoo, I've received the MVP Award again....
Read on ...

Automatically Generating Class Diagrams from a Type Using Reflection

Posted by: Imar Spaanjaars at Sunday, September 20, 2009 4:17:54 PM in: .NET 3.5 General
Before I launched my web site www.dotnetattributes.com in early 2009 I generated most of the content automatically using reflection and web look ups. I extracted all the various attributes from .NET assemblies using the Managed GAC API Wrappers and I extracted a lot of class details and documentation from the MSDN site using the HttpWebRequest class. One thing I hadn't automated at first and was planning to do manually using Visual Studio was generating class diagrams. However, soon after the first full import attempt I ended up with more than 1,200 attributes so manually creating the diagrams suddenly did not seem so attractive anymore.
Read on ...

Book Review: ASP.NET 3.5 Content Management System Development by Curt Christianson and Jeff Cochran

Posted by: Imar Spaanjaars at Sunday, September 20, 2009 10:55:51 AM in: Book Reviews
Since I work a lot with ASP.NET and work in the business of Content Management Systems in my job as Technical Director at Dynamicweb, I was immediately interested when I saw the book "ASP.NET 3.5 Content Management System Development" from Packt Publishing. So I ordered a review copy hoping for a great book on ASP.NET and CMS. Having read the book now, I am quite disappointed.
Read on ...

How to handle the error "The specified string is not in the form required for an e-mail address."

Posted by: Imar Spaanjaars at Saturday, July 18, 2009 1:45:19 PM in: ASP.NET 3.5
Recently I saw a number of people (a colleague and some readers of my book Beginning ASP.NET 3.5 in C# and VB) run into an ASP.NET error indicating that the "specified string is not in the form required for an e-mail address". This error is quite common and usually pops up when developers or end users are supplying a value that doesn't match the syntax rules for an e-mail address. However, in the recent cases I saw this error popped up at the moment a new MailMessage class is constructed. That means the code crashed even before it tried to assign an e-mail address to one of the To, CC, Bcc or From properties through code. So what happened?
Read on ...

Proper Handling of 404 Errors Using redirectMode

Posted by: Imar Spaanjaars at Sunday, July 5, 2009 1:54:35 PM in: ASP.NET 3.5

ASP.NET has a handy feature that lets you easily determine an error page that gets displayed in case an error occurs on your server. Using the customErrors section in the web.config file you can assign specific pages that are displayed for specific HTTP error codes. The following example shows how 404 errors (page not found) and 500 errors (server errors) are routed to the file ~/Errors/Error404.aspx and ~/Errors/Error500.aspx respectively. All other errors are handled by the generic ~/Errors/Error.aspx page:

<customErrors mode="On" defaultRedirect="~/Errors/Error.aspx">
  <error statusCode="404" redirect="~/Errors/Error404.aspx" />
  <error statusCode="500" redirect="~/Errors/Error500.aspx" />

Although easy to use and set up, this solution has some drawbacks that might impact how search engines see your site and how 404 errors are treated. The good news is: these problems can easily be overcome.

Read on ... 12345678910111213141516171819202122232425262728293031