Sometimes when you receive an exception when debugging a WCF service, you receive the following message : The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to […]

Continus reading  

The other day I needed to send an object with a control for a dashboard type interface. I started messing around with the tag and realized in .Net 4.0 and WPF, it can hold an object, not just text. So let’s say I had an object ControlInfo. I then wanted […]

Continus reading  

Formatting code not only keeps OCD programmers like me sane being organized, it also helps with the readability of your code when ever you or somebody else views it for maintenance. However sometimes formatting the code quickly in Visual Studio 2010 is not exactly straight forward so I thought I’d […]

Continus reading  

Have a filestream set up and need to produce an Image or Bitmap image from the blob? No worries, there are a few ways in doing this. First off, let me show you how to create the image or bitmap image from the byte array. To an image specifically. To […]

Continus reading  

Ever need to display a word document in the same application and didn’t want to shell execute word? Ever need to display text from a rich text file or regular text file? How about quickly displaying an image file? All of these could use there own controls in WPF (Document Viewer, […]

Continus reading  

A quick post for you guys. I’m currently debugging a windows form application and came across “Object Cannot Be Cast From DBNull To Other Types”. Basically what this translates to is that you have to check for the DBNull before converting. For example :   You would just need to add

Continus reading  

If you ever seen the above check mark, you are probably wondering what the heck is going on. First off it’s not checked or checked, some in between state where it’s just filled with a blue square. Second off you even, most likely, have a variable bound to it, and yet […]

Continus reading  

There has been a few times I needed to do a like statement in LINQ, but didn’t know exactly how to go about it. Just in case there are you out there looking for the same, I thought I would post what I did. For example, say you had this […]

Continus reading  
%d bloggers like this: