May 2009 archive

How to write a Regular Expression – syntax

Q: What are the special characters, escape sequences, and in general the syntax when doing regex (Regular Expressions)?

Continue reading

How to verify you can connect to a SMTP server

How can I verify if I can connect to my email server? I’m having issues sending email using an SMTP server and I want to know if it is because of my code or due to an external issue. What is an alternative to verify connection settings to an SMTP Host?

Why is the Logging Application Block Not Writing to Vista Event Log?

Q: I’m currently working with Enterprise Library 4.1 and have set up the Logging Application Block on my Web.Config so that exceptions can be handled and logged on the event log. I have checked the configuration parameters and all the calls to the Logging Application Block but I’m not able to get it to record …

Continue reading