System.Security.SecurityException Writing to the Application Event Log on Windows Server 2008 with ASP.NET 4.0

I worked with a customer recently who ran into an error with one of our products on Windows Server 2008. We tracked the source of the error to a permissions issue with the Security event log key in the Windows Registry. Interesting problem since we use the exact same code to write to the Application [...]

Read full story Comments { 0 }

Redirect HTTP to HTTPS on Microsoft IIS 7 and 7.5

We are often asked how to redirect non-secure HTTP requests to secure requests on HTTPS using SSL. You can redirect HTTP requests to secure HTTPS request over SSL using the URL Rewrite module in IIS 7 and 7.5. At the heart of the matter, the URL Rewrite module allows users to be elegantly redirected from a URL like http://somedomain/ [...]

Read full story Comments { 0 }

Efficient Queries with LDAP Search Filters

Writing LDAP queries can prove quite difficult because of its odd search filter syntax and the (mostly) non-relational nature of the LDAP data store. Even once you get your query in place, performance issues can plague your query if you don’t set it up correctly. The articles below should help you create efficient LDAP queries. [...]

Read full story Comments { 3 }

Create a Code Signing Certificate on Windows Server 2008 with OpenSSL and pvkimprt

We recently renewed the code signing certificate we use to certify that our product installers are genuine and from a trusted download source. As part of this process, you generate a code signing request (CSR) along with a private key and you send the CSR to a Certificate Authority like GoDaddy.com. The CA then validates [...]

Read full story Comments { 0 }

Configure ASP.NET with Load Balancing on a Web Farm to Avoid ViewState Errors

I am working with a customer who reported an issue recently with one of our applications they deployed to a hardware load balanced web farm. The error itself is quite straightforward. Exception occurred in System.Web: Invalid viewstate This obviously has something to do with the load balancing switching between servers but what’s the best way [...]

Read full story Comments { 0 }

Installing the VMware vSphere Client to Manage vSphere Remotely

I recently upgraded a desktop computer in our environment and needed to install the VMware vSphere Client software to allow remote management of a vSphere server environment. It has been a while since I installed a vSphere Client and I forgot where to get the installation bits. I poked around on the Internet and found [...]

Read full story Comments { 0 }

InstallShield Error -2147219705 with .NET 4.0 and DotNetCoCreateObject() in InstallScript

We have a product that runs on .NET 4.0 and our InstallShield installer for the product uses the DotNetCoCreateObject() method to run some installation actions in an InstallScript custom action. The DotNetCoCreateObject() method works fine in our .NET 2.0 (and 3.0/3.5 by extension) products but we kept getting a run-time exception (-2147219705) when trying the same InstallScript with our [...]

Read full story Comments { 0 }

Hook up Android Ice Cream Sandwich (ICS) to Microsoft Office 365 Exchange Mail

I recently upgraded from a BlackBerry mobile device to an Android Ice Cream Sandwich device. I’m less than 24 hours into my experience with the Android device and I’m already wondering why I waited so long to leave RIM behind. Not only does the Android operate much faster and with a more intuitive user experience, [...]

Read full story Comments { 0 }

.NET 4.5 Developer Preview Installation Error or Windows XP

Microsoft released the beta of Visual Studio 11 last week and I wanted to take a spin around it. My development machine currently runs Windows XP SP3 and I didn’t think twice to download the .NET 4.5 Developer Preview to install as a prerequisite for Visual Studio 11. Alas, though, I ran into the following [...]

Read full story Comments { 0 }

COM Unknown error (0×80005000) with PrincipalContext in the System.DirectoryServices.AccountManagement .NET Namespace

While working on a project recently, I ran into the very undescriptive COM Unknown error (0×80005000) trying to instantiate a PrincipalContext to use for some Active Directory management needs. To support a number of directory connection scenarios—including AD, AD LDS and the local machine SAM—our application allows admins to configure any set of relevant parameters used [...]

Read full story Comments { 0 }