Category Archives: .NET

Automatically Ignoring Untrusted SSL Certificates in Firefox Using WebDriver and C#

The "This Connection Is Untrusted" page Firefox was showing

TL;DR – You can tell WebDriver to automatically ignore untrusted SSL certificates on Firefox by setting the “webdriver_assume_untrusted_issuer” preference to false in the Firefox profile. We recently ran into an issue where our tests were failing because Firefox was showing the “This Connection is Untrusted” window. Firefox was complaining that our SSL certificate was not […]

Also posted in Acceptance Testing, C#, Testing, WebDriver | Tagged , , , , , | Leave a comment

Error loading .NET 4.0 assembly in TeamCity using MSpec

When we migrated our tests from NUnit to MSpec (Machine.Specifications), we encountered the following error: Could not load file or assembly ‘file:///C:\BuildAgent\work\c7e220bd4bfc29dc\bin\dependencies\SomeProject.dll’ or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. After some Googling, I realized that the default MSpec runner (MSpec.exe) […]

Also posted in Continuous Integration, MSpec, TeamCity | Tagged , , , | Leave a comment

You ARE protecting your passwords in your config files AREN’T YOU?

When we are writing software for our clients, we have a fiduciary responsibility to ensure the security of their site. One way to increase security is to ensure that passwords and other sensitive information are not laying around in our config files unsecured (in plain text). All too many times I have seen something like […]

Also posted in C#, Configuration, Security | Tagged , , , | Leave a comment

Video: Padawan to Jedi – A Developer Jump-Start (my presentation at Austin Code Camp 2011)

Here is the video of my “Padawan to Jedi – A Developer Jump-Start” presentation I gave last week at the Austin Code Camp 2011. It touches on all the principles, patterns, practices, and such that I have learned in my many years being a developer. I designed the Padawan2Jedi talk to present knowledge in a […]

Also posted in Agile, C#, Continuous Integration, Continuous Learning, Design, Humility, Leading, Mocking, Patterns, Presentations, Principles, Productivity, Simplicity, Soft Skills, Test-Driven Development, Testing, Tools | Tagged , , , , , , , , , , , , , , , , | 1 Response

Catching vs. Bubbling Errors

When should you catch an error? When should you just bubble up an error? I was asked this question a while back and came to a rather simple answer. There are two cases when you should catch an error. In all other cases, bubble it. When the error needs to be displayed or logged, catch […]

Also posted in Error Handling | Tagged , | Leave a comment