Thursday, March 10, 2016

Assembly Reference loads in Release, but not in Debug, Visual Basic 2013

Leave a Comment

I am not very experienced. Just trying to make some changes to source code that someone else wrote.

I had to add a reference to a .dll to get it to work in "Release" mode. However when I try to get it to work in Debug, it does not work. (assembly reference not loaded).

Help?

2 Answers

Answers 1

It looks like the Chillkat dot net is a actually a mixed mode assembly and it's quiet possible that you need to have the appropriate c runtime as well. This exception and a way to fix this is documented here

Hope this helps.

Answers 2

Typically I get this error when the executable is x86 and the dll it's referencing is x64. Check your build configurations to make sure it's targeting the correct platform.

In VS2013 go to Build -> Configuration Manager. There should be a drop down in the top left of the new window which contains the different build modes. Compare Debug to Release.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment