PInvoke Error in .NET 4: Array size control parameter index is out of range

So in a code-base I was working in yesterday, we use PInvoke to call out to the Performance Data Helper (PDH) API’s to collect performance information for machines without using Perfmon.  One of those PInvoke calls looked like this: /* PDH_STATUS PdhExpandCounterPath( LPCTSTR szWildCardPath, LPTSTR mszExpandedPathList, LPDWORD pcchPathListLength ); */ [DllImport("pdh.dll", CharSet = CharSet.Unicode)] private…

0

Starting a new Chapter in the Career of Mike Huguet

A couple of months ago an opportunity unexpectedly made its way into my life that would offer something different for my career.  At first I ignored it, but after a while I started thinking about the possibilities before me.  There were a couple of job openings at this “little” company, which you may have heard…


Research for the Week-Memory Management Part 1

Do you know what happens when you create a new instance of a class?  Why do we need a value type and a reference type?  Do you know what is meant when the .NET framework is referred to as a “managed” platform?  What is managed versus unmanaged code?  Why do we need a .NET runtime? …


Research for the Week–How IIS Works

In the world of custom web application development a critical component of our success is the hosting environment and services.  We can choose to deploy our web applications using 3rd party hosting providers such as GoDaddy.com, Rackspace, DiscountASP.NET, or another provider, or we can choose to deploy to on premise servers either virtual or physical. …


Getting more information from the Word error box when troubleshooting OpenXML / WordML issues

So, many apologies for dropping off the face of the blogosphere lately.  Fortunately (or unfortunately, depending on your perspective), I’ve been really busy at work.  I’ve been working on some really cool things that I hope I’ll be able to talk about publicly soon.  For now, though, I wanted to pass on something that I…

0

Upcoming Speaking Schedule for 2011 Q2

I have stepped it up a notch and am speaking at numerous user groups and technical conferences in the South East in the coming months.  These include .NET & SharePoint user groups as well as SQL Saturday and SharePoint Saturday all day conferences.  I will also be submitting to a couple of more regional events…


Silverlight Error – “Failed to create a system.double from text ‘xx’”

I encountered the error “Failed to create a system.double from text ‘50’” when trying to develop a SketchFlow project.  After doing some digging I found that it was just that I had a space after my number “50.”  After removing the space, SketchFlow was able to load the page. Technorati Tags: Silverlight,Blend,Expression


Visual Studio 2010 Type or namespace ‘xyz’ does not exist in…

It pains me to write this post as I feel like an idiot for having wasted my time on this “problem.”  Hopefully in posting this, I can keep some other poor lost soul working at 4 AM in the morning from spending wasteful minutes scratching his head and getting frustrated.  The Visual Studio designer will…