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…

0

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=12.0.0.0, 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…

1

Ain’t Programming Fun!

So I was upgrading a project from VS.NET 2003 to VS.NET 2005 (v2.0 of the framework) and I kept hitting this assert:  “_CrtIsValidHeapPointer(pUserData).”  There were several postings out and about but they were all for previous versions of the framework, nothing to do with upgrading to whidbey.  After a long and unsuccessfull jaunt to change…

1

Getting VSIP to browse

The VS.NET SDK (a.k.a. VSIP package) lacks the wide spread use and documentation that other SDKs enjoy.  To make a change to that here’s a little snippet that shows you how to open the VS.NET webbrowser and browse to a particular page:   IVsWebBrowsingService web = (IVsWebBrowsingService)Vsip.VsPackage.VsPackage.GetGlobalService(typeof(IVsWebBrowsingService)); if (web == null)    return; IVsWebBrowser ppBrowser; IVsWebBrowserUser…

0

ASP.NET 2.0 & "allowDefinition=’MachineToApplication’" error message

So, I upgraded an existing ASP.NET (1.1) application today to ASP.NET 2.0.  The upgrade had some warnings which seemed unimportant but it didn’t matter since I had elected that the upgrade wizard make a backup of my application.  Alas when I try to run the application I ran into this problem:  “It is an error…

6

I took some notes on some remoting questions I recently answered…

  Server activated objects (SAOs both singleton and singlecall) use threadpool magic to execute remoting calls on thread pool threads.  See ThreadPool.QueueUserWorkItem in the docs.  Also note that you can change the # of thread pool threads…the default is 25 per proc.    It is possible to share data with Singlecall object instances by having…

0

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,…

3

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…

0

Some KB articles don’t like to be found

For Instance: ActiveX control containers that support .NET controls – http://support.microsoft.com/?id=311334 I’ve known of the existince of Q311334 long before it was published.   But to this day, I can never seem to find it when I need it.  I have had to reference this KB article quite frequently (once every other month) but every time I…

3

The evading solution to large remoting messages

    Thanks to rick for the title!     We are seeing more and more people encountering:    Q322975 BUG: Passing large quantities of data in .NET Remoting calls causes an unexpected exception to occur – http://support.microsoft.com/?id=322975.   As you can tell from the title of the KB article, this is indeed a bug. …

5