Home > Entertainment > .NET 3.0 Woes, again

.NET 3.0 Woes, again

Yesterday we ran into this one

BadImageFormatException: The exception has no stack trace nothing whatsoever. It doesn’t give you a clue on why this might happen. Looks like someone has already faced this issue.


I am guessing some of the WCF stuff is Remoting.Rename();

When I installed Visual Studio .NET 2008 Beta 2, My .NET Framework 2.0 was silently updated to .NET Framework 2.0 Service Pack 1 & it works on my machine, but not on the machines which do not have .NET Framework 2.0 Service Pack 1.The issue is apparently fixed in .NET Framework 2.0 Service Pack 1, which is not yet released.

Another generics WCF WTF:

Type openConstructedServiceType = typeof(ApplicationEventSubscriberService<>);
Type closedConstructedServiceType = openConstructedServiceType.MakeGenericType(genericTypeParameter);

ServiceHost host = new ServiceHost(openConstructedServiceType, new Uri("http://localhost:9009/QueuedSubscriber/" + genericTypeParameter.Name));

results in

"An unhandled exception of type ‘System.ArgumentNullException’ occurred in mscorlib.dll

Additional information: Value cannot be null."

Very informative message isn’t it. Ideally it should have been something like "Cannot use a Open Constructed Generic Type" which is more meaningful. I have been facing quite a few ‘meaningful’ exceptions from the WCF runtime like this. ‘Release Early’ is good, but I think how much one should compromise on quality is a bigger concern.

I have written earlier on the same topic here

Categories: Entertainment
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: