Dll throws Error on non dev machine

I am having a problem with a third party dll when installing my applications on some other machines.  Note that it works fine on some machines and not on others.  My application references a dll called UNIVOPT_CSLOADER.dll which is a .NET wrapper for the C++ dll, CSUNIVOPT.  When it fails it throws this error message:  The type initializer for "CSUNIVOPT" threw an exception.  Looking at the stack trace this happens when I first try to call a function from this dll.

The dll in my application, UNIVOPT_CSLOADER, resides in my applications directory and the other dlls are in my System32 dir.  These other dlls also reside in the C:\MBRM dir, the install directory for this product, but I have renamed them and run the application to confirm that it is calling the ones in the System32 dir.

If I move this application into the C:\MBRM directory it runs fine, but if I try and move all the dlls into from the MBRM dir into my apps dir I have the same problem.  

Why would the same dll's try to load their dependant dlls from different places on different machines?
pjsulinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kaylanreilorCommented:
Don't you register these dlls when you deploy your app ? Did you use tlbimp.exe to generate the .Net wrapper of your native C++ dll ?
0
pjsulinAuthor Commented:
The problem was that I was running two different versions of the dlls, the newer was suppose to be backwards compatible but was not.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.