# CVBfoundation.dll not found

**URL:** <https://forum.commonvisionblox.com/t/cvbfoundation-dll-not-found/567>\
**Category:** Programming Questions\
**Tags:** csharp\
**Created:** [October 8, 2018, 3:01pm UTC](https://forum.commonvisionblox.com/t/cvbfoundation-dll-not-found/567 "2018-10-08T15:01:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CvK](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/cvk/32/112_2.png) [@CvK](https://forum.commonvisionblox.com/u/CvK)\
**Post date:** [October 8, 2018, 3:01pm UTC](https://forum.commonvisionblox.com/t/cvbfoundation-dll-not-found/567/1 "2018-10-08T15:01:20Z")

</div>

Coming back to a bit of code from a month back, I suddenly get the following error;  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/cd6beee72b363f2abd1a871d96966fe6cc1bf76a.png)  
weird thing is, that I didn’t update CVB, nor change anything in the code or project. I tried running the installer of CVB again to repair any missing references, as well as removing the reference to the .dll and adding it anew, but to no avail.

I’m a bit at a loss at where to look for the solution on this? The only thing I could think of is environment variables or registry keys being wrong somehow, but the repair installer should’ve taken care of that right?

---

<div class="post-metadata">

**Author:** ![illusive](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/illusive/32/61_2.png) [@illusive](https://forum.commonvisionblox.com/u/illusive)\
**Post date:** [October 8, 2018, 8:28pm UTC](https://forum.commonvisionblox.com/t/cvbfoundation-dll-not-found/567/2 "2018-10-08T20:28:33Z")

</div>

Hi @CvK

what happens if you start one of the :cvb: Foundation tutorials written in C++ (like e.g. _VCColourSpaceConv_)? Can you see the iCVCFoundation.dll in the _C:\Windows\assembly\GAC\_MSIL_ directory? What versions are there?

Generally speaking, registry keys are unlikely to be the culprit(s) here, environment variables only if they lead to the unmanaged DLLs of :cvb: to no longer being found. The reasons I can think of:

- Mangled content of the Global Assembly Cache (hence my initial questions)
- Mangled content of the _%CVB%_ directory (should not happen, but I’ve seen over-eager virus scanners do that kind of thing…)
- Mismatch between the version of _iCVCFoundation.dll_ that your binary wants to load and what is available
- Mismatch between the .Net Runtime Version in your project and the iCVCFoundation.dll (but I’d expect to see a warning during compilation)

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/frank/32/42_2.png) [@Frank](https://forum.commonvisionblox.com/u/Frank)\
**Post date:** [October 9, 2018, 6:54am UTC](https://forum.commonvisionblox.com/t/cvbfoundation-dll-not-found/567/3 "2018-10-09T06:54:07Z")

</div>

Do you use the new wrappers from the binding preview, have you reinstalled them as well?

---

<div class="post-metadata">

**Author:** ![CvK](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/cvk/32/112_2.png) [@CvK](https://forum.commonvisionblox.com/u/CvK)\
**Post date:** [October 9, 2018, 7:07am UTC](https://forum.commonvisionblox.com/t/cvbfoundation-dll-not-found/567/4 "2018-10-09T07:07:37Z")

</div>

The VCcolourspace tutorial/example works just fine, no problem there.

The …/GAC\_MSIL folder has an iCVCFoundation version in it matching the version I have a reference to (2.18.0.0), so that seems to be fine?

the %cvb% folder also seems to be in order at first glance.

---

<div class="post-metadata">

**Author:** ![CvK](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/cvk/32/112_2.png) [@CvK](https://forum.commonvisionblox.com/u/CvK)\
**Post date:** [October 9, 2018, 7:25am UTC](https://forum.commonvisionblox.com/t/cvbfoundation-dll-not-found/567/5 "2018-10-09T07:25:35Z")

</div>

And the issue automagically resolved itself… Guess either me or my pc was having monday blues?
