Visual Studio 2010 Archives - Dirk Strauss

The Daily Six Pack: October 23, 2013

On 23 October, 2013 06:00:46, in The Daily Six Pack, by Dirk Strauss
Apple iPad Air

Dirk Strauss





Feature link: Apple iPad Air
For more excellent content, please visit

Visual Studio Spell Checker – Dot Your I’s And Cross Your T’s

On 23 August, 2013 07:00:08, in Programming, by Dirk Strauss

Visual Studio Spell CheckerVisual Studio Spell Checker – A couple of years ago, I had to create an application  for a German company. Along with using localisation to create the German/English translation, spell checking that sucker was a challenge.

There were well over a few hundred text strings and many of these were stored in code. Nevertheless, we made it through after a long and tedious development. Suffice to say that developers aren’t the best of spell checkers.

Well now there is help on the horizon. Visual Studio Spell Checker is a free add-in available on the Visual Studio Gallery and supports Visual Studio 2012 and Visual Studio 2010.

Continue reading »

The Daily Six Pack: May 17, 2013

On 17 May, 2013 06:00:53, in The Daily Six Pack, by Dirk Strauss

IntelliTrace Featured

IntelliTrace is a new feature introduced by Microsoft in Visual Studio 2010 Ultimate (Yes believe it or not, not everyone is using Visual Studio 2012 yet). It was previously known as Historical Debugger. IntelliTrace is a tool that helps developers track down bugs that might not be reproducible in their managed code apps. Think of as an example, those that appear only once because of a web service error or a system issue. See more in the featured link.

Then, (as everyone knows) many shiny new things were unveiled at Google’s I/O recently. What was also announced was a brand new IDE that has been built with the needs of Android developers in mind. Called Android Studio, this free IDE is available now for you to try as an early access preview.

Lastly, my wife has just made me go white with fear as I realized how gullible people really are. She received a mail from the South African Revenue Service stating that an amount of money has been paid into her account. She still told me jokingly that she could see from the email address that it was a spam mail. [Scare Alert – Enter Scary Music Now] She also told me that she clicked on the link in the mail because she was curious to see what it did. I am convinced… WE are our own worst security risk. I think I need to write a blog post on this. Anyway, Troy Hunt brings us some more excellent security advice, so give that article of his a read.

Have a great day today! I am off to go and educate the wifey on good security practices. Here is The Daily Six Pack!

Feature link: IntelliTrace
For more excellent content, please visit

South African ID Number Validation in C#

On 16 November, 2012 12:30:11, in Programming, by Dirk Strauss

South African ID Number Validation – There are many reasons a developer in South Africa would need to validate a South African ID number. For example to validate the input on an Online order form or as a form of identification for a loan etc. But how exactly do you do this? I’m sure that many of you have already found the Web Service to do this, but here is my take on it. A South African ID Number is made up as follows:


YYMMDD : Date of birth (DOB)
G : Gender. 0-4 Female; 5-9 Male
SSS : Sequence No. for DOB/G combination
C : Citizenship. 0 SA; 1 Other
A : Usually 8, or 9 but can be other values
Z : Calculated control (check) digit

For more information, documentation and info on how the control digit is calculated, refer to SA ID Validator Web Page. What I did was to create a small application in Visual Studio 2010 (which is also available for download at the end of this post).

Continue reading »

Today saw the All-In-One Code Framework Sample Browser updated to Version 4. I have to say, that I really love the look and feel of this latest version. Now while I know that there is a Sample Browser Visual Studio Extension for 2010, I feel that version 4 looks nicer and I wanted to have it available inside Visual Studio 2010. To enable this, follow these steps:

Step 1

From the Toolbar, select the Tools menu item.




Continue reading »

Creating a Windows Service with a Timer

On 15 June, 2011 11:21:46, in Programming, by Dirk Strauss

Okay, you probably all know this, but somewhere someone doesn’t. And I thought it might be a nice article to post. Have you created a Windows Service Timer that isn’t working? The reason for this is because you probably added a Windows Forms Timer to your Service instead of a System Timer. So for future reference, this is what I did:

Continue reading »

I just wanted to post a quick note here regarding a build error I got for the Log4Net Logging Service and Visual Studio 2010. I added the Log4Net DLL and some logging to my application, but on the Build, I received the following Warning:

The referenced assembly “log4net, Version=, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL” could not be resolved because it has a dependency on “System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” which is not in the currently targeted framework “.NETFramework,Version=v4.0,Profile=Client”. Please remove references to assemblies not in the targeted framework or consider retargeting your project

Log4Net Error Solution

This simply means that the Log4Net DLL relies on some classes in System.Web and isn’t included in the current selection of your .NET Framework. This is because you can choose two types of .NET Framework 4. These are the Client Profile and the Full framework. When do I use NET4 Client Profile and when do I use NET4 Full Framework I hear you say? See here for an article.

Meanwhile, go to your Project Properties (Visual Studio Menu bar: Project ->[ProjectName] Properties…). You should see that the framework is selected to .NET Framework 4 Client Profile. Change this to the .NET Framework 4 and save. Rebuild your project and you’ll be good to go.

Log4Net Visual Studio Framework