Getting a System.Runtime.InteropServices.COMException when trying to use BitmpaMetadata to extract EXIF/XMP data?

Well if that’s the case, it’s probably cause you’re attempting to use this class from a MTA thread.  In order to fix this, just change the apartment of the thread where this code is running from MTA to STA (either using the [STAThread] Attribute or by setting the ApartmentState member of the thread that you’re…


Referencing Sharepoint Assemblies on x64bit Installs causes build errors for ASP.NET apps (in VS.NET 2005)

You may encounter the following error if you are trying to build a ASP.NET application or web service on a x64bit machine where Sharepoint is installed: Error 1 Could not load file or assembly ‘Microsoft.SharePoint.Search, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c’ or one of its dependencies. The system cannot find the file specified. C:\Documents and Settings\robgruen\My Documents\Visual Studio 2005\WebSites\MyWebService\Web.Config What happens…


Installing Displays #5 & #6 on my workstation

So I get my third dual head card in the mail the other day and after two days of patient waiting I took the plunge to install it.  Well, to make a long story shorter, it took me all day to get working.  Typically you just add the video cards and voila, things work without…


How Can You Update Your Computer When the Thing That Updates Your Computer Is Broken?

Simple, YOU CAN’T!!! For a while now my computer’s Automatic Updates has been broken.  No new downloads have appeared, the control panel icon is missing, and the Windows Update site can’t install the updated ActiveX control.  Every time I go to the site it tries to update the WU client and I keep getting this 0x800703E3 funky…


Connection_Dropped Error in the HTTPERR Log for IIS

I was trying to install a web service on a freshly build W2k3 box.  I checked the event log and found: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 1/3/2006 12:50:03 PM Event time (UTC): 1/3/2006 8:50:03 PM Event ID: e85fe2d9c6c84f9287d5bed943869d42 Event sequence: 1 Event occurrence: 1 Event detail code: 0…


Here’s a cryptic RegAsm Error you might see with VS.NET 2005

Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.42Copyright (C) Microsoft Corporation 1998-2004.  All rights reserved. RegAsm : error RA0000 : Could not load file or assembly ‘MyAssembly, Version=, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. Exception from HRESULT: 0xE0434F4D Now I know my assembly has version so this doesn’t make sense….nor did the fact that…


The Case of the Mysterious Hanging Shell

Please note that the identities mentioned in this story have been changed to protect the innocent.  Any names that coincide with real life people is purely coincidental.   So there I was, calmly working away when I get the phone call that started it all.  I pick up the phone, “Hello?” I ask.    “Yo,…


Caspol -s Behavioral changes for Whidbey

We generally use “caspol.exe -s off” as a quick test to determine if .NET framework security plays a part in problems with managed components.  It used to be that sometimes people would forget to run “caspol.exe -s on” to turn framework security on.  Imagine all the nasties that could infect your box then! Well, in…


Magic Trick: RPC Debugging Excercise

  What you need for this exercise:   An out of proc COM server A client attempting to call the exe in #1 #2 is getting the below hr returned by a call to #1   // From WinError.h // MessageId: RPC_E_DISCONNECTED // // MessageText: // //  The object invoked has disconnected from its clients….


What’s “Enable RPC Debugging” option in VS.NET?

The “Enable RPC Debugging” option is a somewhat well hidden option in Visual Studio .NET.  It is available in VS.NET 2002, 2003 & 2005.  You can set/clear this option by navigating to the Tools menu and selecting Options.  On the options dialog select the Debugging->Native property page.   Unfortunately this setting only applies to C/C++…