Error: 0xC0048006 at [Process Name], ActiveX Script Task: Retrieving the file name for a component failed

When I was testing a SSIS package that usually runs on a server, I got the following error during a process which is supposed to copy a file to a folder on a  different server. Error: 0xC0048006 at [Process Name], ActiveX Script Task: Retrieving the file name for a component failed with error code 0x05AA8FA4. Confused, I found a few...

View All Recent Check-Ins in TFS

You or a co-worker accidentally check in some code and need to roll back? Don’t fear, it’s actually pretty easy to roll back or view your changes. In Visual Studio, go to View -> Team Explorer In the new window/pane that appeared, there should be an object titled, Source Control. Double click it In the new window that will open, navigate to...

The image cannot be decoded. The image header might be corrupted

I was recently trying to send to Telerik’s image editing control a jpeg image in a stream format. I was checking for the other types and using the appropriate format providers, but I kept getting an exception when working with JPEGs : The image cannot be decoded. The image header might be corrupted With the following code : So, I...

Multiple Windows of Notepad++

I use Notepad++ all the time for both home and work, whether I’m debugging or formatting HTML, PHP, C#, etc… I had an issue recently however where it would have been nice to have multiple instances on different monitors. So I searched their site for anything to create new windows and found exactly what I needed, their command line options...

Filter an ObservableCollection with a CollectionView in C#

Using an ObservableCollection and need to filter its contents? A quick and easy way I found was to create and bind to a CollectionView to perform the filtering for you. Step 1 : Create the Observable Collection The first step is to create the observable collection. This will work for objects or system type lists, so feel free to use...

Saving and Loading a Byte Array To File in C#

Need a quick way to save a byte array to file and read back? So did I, and thought I’d include this simple code snippet for anybody who needed it as well. Includes Code : Saving to File Note below, there are two additional options (besides the name) you can include in the FileStream, FileMode and FileAccess. FileMode lets you...

Turning on Agent Forwarding in PuTTY

So, you are in PuTTY and need to enable Agent Fowarding. This wasn’t super easy to find so I thought I’d post how I got there. View the image below as a guide as well. Go : Connection -> SSH -> Auth -> Then in the Authentication Parameters click the Allow agent forwarding. Now you can use the very easy process of...

Attaching a Debugger to a Process in Visual Studio 2010

Ever have one of your applications running out of visual studio, but need to debug a method? An awesome feature you can utilize, if you are not using the express version of Visual Studio, is attaching the debugger in Visual Studio to a process currently running on your computer. Step 1 : Open up the Attach to Process option. Step...

How to Install and Run PowerShell

The install PowerShell on a version of Windows before Windows 7 (Windows Server 2k3, 2k8, Vista, or XP), visit the Windows Management Framework download page. This download includes Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0. For those interested, you can also download just WinRM and PowerShell at that link as well. Note : If you are using Windows 7, PowerShell is already installed....

The Difference Between Decimal, Double, and Float (Examples in C#)

The Decimal, Double, and Float variable types are very similar in the fact that they use a decimal in their value (Actually called the Radix Point), but are different in the way they store that value (Amount of bits reserved for the mantissa and exponent), and should be used in specific situations versus interchangeable. The main difference is Floats(Single) and Doubles...

Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries.

I don’t know how many times when I was debugging my application which had two databases communicating, I got the following error : Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries. This basically means something updated the row since the last...

%d bloggers like this: