Category: Technology
-
Lock Windows 7 Then Logon Slow
Headline: Mine problem was a special case where Dell Control Point was taking quite some time when I would logon to unlock my Dell Precision M4500 Notebook running Windows 7 x64. Uninstalling Control Point and installing Dell Data Protection Program solved my issue! The Problem I’ve always been in the habit of locking (Windows Key…
-
Hyper-V Export and Import Not Easy
NOTE: Read all the import instructions before restoring/importing a machine. If you mess this up you can be in big trouble (as it will only let you import once by default.) I use Hyper-V to host my TFS environment. As someone with Visual Studio 2010 Ultimate MSDN (Microsoft Developer Network) subscription, I have access to…
-
Getting a Digital ID for Outlook 2010
From time to time I need to send documents securely. While I’ve tried some other means in the past, one way is to use the Digital IDs in Outook. Since the certificate is for one year I have to run through this… once a year. That’s plenty of time for me to forget what I…
-
MVC 3 Breaks Error Tracking in CodeSmith Insight
I finally have the Crash Reports working again with CodeSmith’s Insight. The release of MVC 3 provided a new way to deal with errors using the HandleErrorAttribute. The changes to the Global.asax.cs file look something like this: Application_Start protected void Application_Start() { AreaRegistration.RegisterAllAreas(); // Added this when converting to MVC 3 RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes);…
-
Unit Testing HandleErrorAttribute
Code Analysis doesn’t like the former MVC pattern of using a catch for all errors when updating a model. I wanted to use the HandleError attribute to deal with errors, but how should I unit test it? There are several keys to having the HandleError attribute work: Must decorate the Action with [HandleError] Must have…
-
SmtpClient.Dispose() Bummer
Headline: You will need to put in some try/catch logic when you call dispose on the SmtpClient. I was working on getting rid of some of my code analysis warnings – “Warning 10 CA2000 : Microsoft.Reliability : In method ‘AccountMembershipService.SendActivationEmail(HttpContextBase, string, Guid, string, string)’, object ‘client’ is not disposed along all exception paths. Call System.IDisposable.Dispose…
-
What I did on my winter vacation…
Headline: I passed my Microsoft Certified Professional Developer exams using my vacation time and my personal funds to pay for the course. I’ll talk about several different areas that might be of interest to other as well as “journal” about why some of this happened. What was I thinking? (Or – Why I Did It)…
-
Migrated to Razor View Engine for MVC 3
I just finished converting my views from .aspx files to .cshtml Razor view engine files. It took about 4 hours for 38 views. The key lesson I learned is, “If you didn’t do anything very fancy in a View, just delete it and recreate it.” I think that would have caused it to go faster.…