Search
Thursday, March 30, 2017 ..:: Home ::.. Register  Login
   Calendar  
     
  
   Search  
     
  
   Blogroll  
     
  
   Disclosure  
All blog entries are the opinions of the author and do not necessarily reflect the opinions of their employer. All the code presented is for explanation and demonstration purposes only. Any damages incurred to your site and/or data are not the responsibility of the author. Every effort is taken to ensure the code properly compiles, however sometimes there are some hiccups and you might be required to do your own debugging.
     
  
   TechTidBits (Blog)  
Author: Created: Wednesday, August 06, 2008 11:25 PM RssIcon
Providing technical information from a slight slanted standpoint.
By Peter Henry on Saturday, September 27, 2008 2:00 PM

Are you getting this error message?

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. 9sm3590188qbw.6

Exception Details: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. 9sm3590188qbw.6

Are you using the Microsoft.NET PasswordRecover object and the LocalServer connection string in web.config?  Are you using Google's smtp servers as well?  Well, THERE'S your problem (taken from Adam Savage's quote).&l

By Peter Henry on Wednesday, September 24, 2008 8:40 PM

Did you just cut'n'paste something to the clipboard but thought DANG! I wanted that other thing that was there before! :<  Oh man, it's lost now.  Have no fear, it's not lost!  Introducing the Clipboard Ring!

By Peter Henry on Tuesday, September 23, 2008 11:18 PM

I'm working through creating WebControls and got a funky bug tonight (read that as it smelled realy bad) but I couldn't figure out what was going on.  Turns out I tripped onto a bug with VS08.

If you are seeing the error below, then you're dealing with a VS08 bug and not a coding error (well, at least not YOUR coding error :>).

By Peter Henry on Sunday, September 21, 2008 3:03 PM

Do you use magic number/strings in your code?  Shame on you!  Do you use constants or read only variables, KUDOS to you!  But do you know the difference between a const and a readonly variable?  Read on for some insights into their differences.

By Peter Henry on Wednesday, September 17, 2008 8:43 PM

If you are a member of the ODNC 70-528 Web Study Group, then you'll be interested in a new website I'm working on.

By Peter Henry on Tuesday, September 16, 2008 10:46 PM

Have you ever had to create a web User Control and dynamically show/hide stuff in it?  Have you had issues with it?  I have the solution here, and it's easier than you think! :>

By Peter Henry on Thursday, September 11, 2008 8:44 PM

From yesterday's blog, I hope you noticed I'm a fan of the ///todo tag!  I raised one caveat, you cannot see all your solution's or project's ///todo tags for unopened files.  So how can you fix this you ask?  Great question!  It's actually quite simple, but you'll need to get your hands dirty with a bit of code.  We're all code-heads here right?  So this shouldn't be too foreign?!  Let's dive in!

By Peter Henry on Wednesday, September 10, 2008 10:32 PM

Hopefully you've all heard of XP, Agile, TDD, BDD, but have you heard of ///TODO Management?  If you're using Visual Studio, have you see the ///todo tag in action?

By Peter Henry on Sunday, September 07, 2008 8:04 PM

How do you grab a screen capture?  Do you hit the PrtScn button and then copy/paste it into Paint?  Or do you have some expensive (read as you paid for) tool?  I used to use SnagIt! as my screen cap tool, it was AWESOME!  But with Vista, there is a new kid on the blog, sorry, block!  Introducing, the Vista Snipping tool.

By Peter Henry on Thursday, August 28, 2008 9:05 PM

Have you heard of RSS but don't really know what it is?  You've heard other's talk about getting updates via RSS or maybe reading blogs over RSS, but what IS RSS?  Read further to get a solid foundation of what Realy Simple Syndication is all about.

By Peter Henry on Thursday, August 28, 2008 9:03 PM

A picture is worth a thousand words right?  So I'll take this opportunity to shut up and let the picture speak for itself.  Has anyone else had a boss like this?

By Peter Henry on Thursday, August 28, 2008 12:48 PM

With the introduction of Microsoft's next generation smart client called Windows Presentation Foundation (WPF), they also introduced some news tools.  YAHOO!  But is it really that exciting to find out you actually have to do more work than you used to with WinForms.  WTF?

By Peter Henry on Wednesday, August 27, 2008 8:54 PM

If you are reading this blog, hopefully you're into C# and therefore OOP.  I would hope you've heard of constructors, but have you heard of Constructor Chaining?  It's the process of keeping your code DRY by having one constructor method calling another.  There are two ways to do it, general to specific (forward, down) or the other way around, specific to general (backwards, up the object hierarchy tree).  Both have their benefits and draw backs. 

Slang for this is daisy chaining your constructors.

By Peter Henry on Wednesday, August 27, 2008 3:25 PM

When you're coding, do you use Int32 or int?  So you use String or string?  When it comes time to picking your datatypes do you use the native .NET type or the language specific types?

By Peter Henry on Wednesday, August 27, 2008 1:32 PM

As you're processing a method, how do you return back to the calling method?  Do you have multiple returns in your logic or just have one at the end of the method?

By Peter Henry on Wednesday, August 27, 2008 9:03 AM

I would like to start a series (nope, don't know how many installments yet :>) on coding better.  The first installment/chapter will be on Naming Conventions.

By Peter Henry on Thursday, August 21, 2008 11:40 PM

Ever find yourself trying to figure out what sender is in an event handler?  Have you resorted to using String comparisons thinking there has to be a better way?  Well, there is!

By Peter Henry on Tuesday, August 19, 2008 11:27 PM

Here are some of my favourite Visual Studio keyboard shortcuts I use to save coding time.  Anything that helps me keep thinking about what I want to do instead of thinking how I want to do it, is awesome IMHO.

By Peter Henry on Friday, August 15, 2008 1:46 PM

Useful keyboard shortcuts for MSWord I can never find when I need them.

     
  
Copyright 1999-2012 by PCHenry.com   Terms Of Use  Privacy Statement