“Object does not match target type” error calling a method on an assembly loaded using reflection

Actually, the cause for this error is very small and simple. But because the error doesn’t clearly state what’s wrong and there’s not a lot to be found about this, I’ll post it here anyway… Otherwise, you might be looking for this for a while, while it’s so easy!When you are loading an assembly using …

Read More ““Object does not match target type” error calling a method on an assembly loaded using reflection”

Parameterized queries

Stored Procedures rule, because they facilitate manipulating the dataset you get from a database or the way you are inserting or deleting data in a database without changing your application. Or your business layer for that matter. But you can’t always use stored procedures for the actions you would like your application to take. Or …

Read More “Parameterized queries”

Creating events using delegates

After promising you a post on using delegates to create events several times, I’m now using my break to post it. Because it will be a while if I wait until I can find the time… 😉As I mentioned earlier a delegate can be seen as an interface for a method. Because you don’t know …

Read More “Creating events using delegates”

A*%holes

They stole my leather jacket this weekend, containing my wallet and my keys. Assholes. First thing I learned as a kid: leave other people’s stuff alone! Why is it some people simply don’t have the decency to work for the things they want? I do… Just like all of my friends. And although you might …

Read More “A*%holes”

New phone on the way …

My new phone is on the way! I ordered it yesterday, and faxed all of the necessary info today. So if all goes well, I’ll be calling you using this baby next week!This is the MDA III, provided by T-Mobile. It’s actually the QTek 9090, but T-Mobile placed their own logo on it. It has integrated …

Read More “New phone on the way …”

Personal update

Just a quick personal update: my carchoice has been approved and the car is currently on it’s way. Just a few more weeks… I sold my bike, but will be looking for another one! we had a wedding last friday, very good party! the company party was great! the bottom shelve of the cupboard in our …

Read More “Personal update”

Is my C# application running in debug mode? or: About pre-processor directives

All I wanted to do was check if my application was running in debug-mode or in release-mode. Searching MSDN library and Google (groups) both did not deliver the solution to me. I was about to let go when, out of the blue, a webpage showed up in my browser telling me the following: Visual Studio …

Read More “Is my C# application running in debug mode? or: About pre-processor directives”

Select a car …

It’s almost like playing Need for Speed: “Please select your car.”But this time it was real! Last saturday I had two testdrives and I selected my future car. It is going to be the Citroën C4. I ordered it today and, when all goes well, I’ll be receiving it within just a few weeks! That is when …

Read More “Select a car …”

Microsoft DevDays 2005 – the day after

Yesterday I attended the Microsoft DevDays 2005 in The Hague. The MSDN TechNet briefings in Veldhoven I attended last year (was that October or November?) were great. Because the DevDays would (or should) be even greater I could hardly wait for DevDays 2005 to begin! Here’s my short opinion on the DevDays 2005. Interested in a more …

Read More “Microsoft DevDays 2005 – the day after”

Delegates explained

Delegates can be seen as interfaces for methods. Let’s look at an example of a delegate and what it really represents. delegate double Calculation(double one, double two);All this line of code really does, is tell the class it is in that there might be one or more methods with the given signature: a method returning …

Read More “Delegates explained”

C# XmlSerializer FileNotFound exception

When using XmlSerializer in .Net on a self-made class, you might receive the FileNotFound exception at runtime upon instantiating the serializer. You don’t get enough info to debug this problem, and the filename of the file it didn’t find can’t explain much either, because the dll-name is different ‘garbage’ every time. XmlSerializerPreCompiler to the rescue …

Read More “C# XmlSerializer FileNotFound exception”

DevDays 2005

My provisional program for DevDays 2005:09:30 Keynote: Microsoft Developer Tools StrategyPrashant Sridharan (Microsoft)10.45 Visual Studio Tools for Office 2005Lex Oskam (Microsoft)13.15 Indigo updateGijs de Jong (Microsoft)14.45 BizTalk in actionSijmen Koffeman (Microsoft)16.30 ASP.NET Web Services 2.0Alex Thissen (Twice)I’ll probably be attending these sessions during my first DevDays ever: DevDays 2005.

ASP.Net 2.0

To be honest, I’m glad I’m not on an ASP.Net project right now. I saw ASP.Net 2.0 in action last Friday, and I would go crazy if I would have to do an ASP.Net 1.1 project now.2.0 and the new Visual Studio 2005 (Whidbey) take a lot of ‘standard work’ out of the developers’ hands, …

Read More “ASP.Net 2.0”

.Net eye opener

Currently I’m reading the Microsoft Press book “Developing web applications with Microsoft Visual Basic .Net and C# .Net” by Jeff Webb. (This book is part of the very interesting “MCAD/MCSD Self-Paced Training Kit“.) I borrowed this book from the Microsoft Library here at my new job. They’ve got a very wide variety in books! Another …

Read More “.Net eye opener”

Here we go … !

This is the first in what I hope will be a lot of posts here on my newly created weblog. I started blogging at Google’s blogger, but then I wasn’t aware of the possibilities bloggingabout.net brings you! So now I moved my blog here, to be able to give my opinion about all kinds of (developer related) stuff, …

Read More “Here we go … !”