Matt Roberts

Rails and .NET

  Home  |   Contact  |   Syndication    |   Login
  37 Posts | 0 Stories | 33 Comments | 35 Trackbacks

News




Twitter












Archives

Post Categories

BlogRoll

Entropy

Working with VB6. Ugh. Or to be more precise, battling with DLL Hell and binary compatibility with VB6.

All I wanted to do was change the structure of a few classes that were referenced by other classes (they're only used internally so we don't mind so much if we break binary compatibility). Changing the referenced DLL is fine, you just have to confirm that you are going to break binary compatibility (I know its bad!). But when you try to rebuild the DLL that references it, you get:

"The binary compatibility DLL or EXE contains a parameter type or return type whose definition can not be found"

....then you know you're in trouble :) What this message box really wants to say is:

"The binary compatibility DLL or EXE contains a parameter type or return type whose definition can not be found. Now, I could just warn you about this and let you overwrite the DLL anyway, but instead I'm going to stop here and refuse to let you ever build again until you either turn off binary compatibility, rebuild, and then turn it on again, or you reinstate the original version of the DLL I was referencing."

Anyway, a couple of google group posts and lots of turning off binary compatibility, compiling, and then turning it back on again seems to have done the trick ;)

It certainly makes you appreciate coding in .NET !!

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Friday, February 03, 2006 11:37 AM

Feedback

# re: This week, I 'ave been mostly..... 5/18/2006 11:01 AM stoop
I just had this error today installing our (5 year old *cough*) framework on a new machine. I fixed it by changing references (without breaking compatibilty). It thought it knew best about one of the referenced Type Libraries, but once I changed it to reference the one I wanted it seemed happy again. Lord knows how long it will last! :-)

# re: This week, I 'ave been mostly..... 5/18/2006 2:19 PM Matt Roberts
Lol, the joys of VB and BC!

# re: This week, I 'ave been mostly..... 1/26/2009 9:56 PM byron
ieah!!!!!
Thanks, that's what I need.

# re: This week, I 'ave been mostly..... 3/12/2010 5:58 AM Siva
Surprisingly, you are not the only who had to go thru all that. I strugged with the same error for passt 4 weeks. There was one more error "[[BadImplementsRefCompatLib.]]'. This gave me lot of trouble as well.

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: