# Foundation Binaries/Resources missing

**URL:** <https://forum.commonvisionblox.com/t/foundation-binaries-resources-missing/781>\
**Category:** General Questions\
**Tags:** foundation, setup\
**Created:** [May 21, 2019, 9:42am UTC](https://forum.commonvisionblox.com/t/foundation-binaries-resources-missing/781 "2019-05-21T09:42:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_Esc\_San](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@M\_Esc\_San](https://forum.commonvisionblox.com/u/M_Esc_San)\
**Post date:** [May 21, 2019, 9:42am UTC](https://forum.commonvisionblox.com/t/foundation-binaries-resources-missing/781/1 "2019-05-21T09:42:56Z")

</div>

Hi, I’m using CVB Version 13.01.006 (64 bit). When downloading it, the Tutorial-Folder doesn’t come with a Foundation\Videos Folder, so I can’t try the code presented here with an avi Path. Instead I’m trying to use the ClassicSwitch.emu File as device, but when running the code I get a System.IO.FileLoadException.

> **Code**
>
> > 
> 
> > using System;  
> > using System.Collections.Generic;  
> > using System.Linq;  
> > using System.Threading.Tasks;  
> > using [System.IO](http://System.IO);  
> > using Stemmer.Cvb;  
> > using Stemmer.Cvb.Driver;  
> > using Stemmer.Cvb.Utilities;  
> > using Stemmer.Cvb.Foundation;  
> > namespace Test2  
> > {  
> > static class Program  
> > {  
> > static void Main()  
> > {  
> > var emuPath = Path.Combine(new { “C:\”, “Program Files”, “STEMMER IMAGING”, “Common Vision Blox”, “Tutorial”, “ClassicSwitch.emu” });  
> > Console.WriteLine(emuPath);  
> > Device newDevice = DeviceFactory.Open(emuPath);  
> > IndexedStream stream = newDevice.Stream as IndexedStream;  
> > DeviceImage deviceImage = newDevice.DeviceImage;  
> > Console.WriteLine(“New Device:”);  
> > Console.WriteLine(" Resolution: " + deviceImage.Size);  
> > Console.WriteLine(" Color model: " + deviceImage.ColorModel);  
> > Console.WriteLine(" Frames: " + stream.ImageCount);  
> > }  
> > }  
> > }

---

<div class="post-metadata">

**Author:** ![parsd](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/parsd/32/7_2.png) [@parsd](https://forum.commonvisionblox.com/u/parsd)\
**Post date:** [May 21, 2019, 10:34am UTC](https://forum.commonvisionblox.com/t/foundation-binaries-resources-missing/781/2 "2019-05-21T10:34:44Z")

</div>

Hi and welcome @M_Esc_San,

did you install the full installer, not runtime or CameraSuite? The tutorial resources are not available in any runtime setup. Also CameraSuite only has _Image Manager_ related libraries, no Foundation Package and no tools.

If you updated from a CameraSuite or runtime setup you need to modify you installation. This we sadly cannot do automatically as this is how MSI works. To do this go to your installed apps (for Windows 10 this can be quickly done via `WIN + X` \> `Apps and Features`). In the list find _Common Vision Blox_ and select it. There should be a `Modify` button.

This opens:  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/852f9838a71773d255b18971cf4aa286e85ed822.png)

Click _Next \>_ to get to this screen:  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/747a2a36538bebb4b4c56afd1130710510a3b640.png)

Make sure _Modify_ is selected and click _Next \>_.

Expand the _Developer Resources_ and ensure that all are installed:  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/commonvisionblox/original/1X/fb55455813bf7ef13941d1d306093374b029c6d5.png)

---

<div class="post-metadata">

**Author:** ![M\_Esc\_San](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@M\_Esc\_San](https://forum.commonvisionblox.com/u/M_Esc_San)\
**Post date:** [May 21, 2019, 11:18am UTC](https://forum.commonvisionblox.com/t/foundation-binaries-resources-missing/781/3 "2019-05-21T11:18:49Z")

</div>

Thanks for the prompt answer! Now the problem of finding the file is solved, but I still get a System.ArgumentException when running ‘Device videoDevice = DeviceFactory.Open(aviPath);’

Avi Path is:

```
    var aviPath = Path.Combine(new[]
    {
      //SystemInfo.DataPath,
      "C:\\Program Files\\STEMMER IMAGING\\Common Vision Blox",
      "Tutorial",
      "Foundation",
      "Videos",
      "Cycling (xvid).avi"
    });

```

Am I missing something? ‘SystemInfo.DataPath’ leads to the same exception.  
I’m sorry if these are too Basic questions, but I’m still a beginner in programming

---

<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:** [May 21, 2019, 11:56am UTC](https://forum.commonvisionblox.com/t/foundation-binaries-resources-missing/781/4 "2019-05-21T11:56:17Z")

</div>

You are trying to write to a sub directory _C:\Program Files_. These folders usually require elevated administrative privileges when trying to write to them - did you start your program with administrative rights?

---

<div class="post-metadata">

**Author:** ![M\_Esc\_San](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@M\_Esc\_San](https://forum.commonvisionblox.com/u/M_Esc_San)\
**Post date:** [May 21, 2019, 1:20pm UTC](https://forum.commonvisionblox.com/t/foundation-binaries-resources-missing/781/5 "2019-05-21T13:20:33Z")

</div>

I did, and I tried changing the file to the Desktop too. The exception remains unchanged

---

<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:** [May 21, 2019, 1:25pm UTC](https://forum.commonvisionblox.com/t/foundation-binaries-resources-missing/781/6 "2019-05-21T13:25:27Z")

</div>

My bad - you’re trying to _open_ the file, not _write_ it after all… Are you certain that your application is running as a 64 bit application? (recent versions have introduce the “Prefer 32 bit” option which by default is checked on “AnyCPU” projects; see also here: [Getting Started with CVB.Net](https://forum.commonvisionblox.com/t/getting-started-with-cvb-net/246)…)

---

<div class="post-metadata">

**Author:** ![M\_Esc\_San](https://avatars.discourse-cdn.com/v4/letter/m/ec9cab/32.png) [@M\_Esc\_San](https://forum.commonvisionblox.com/u/M_Esc_San)\
**Post date:** [May 21, 2019, 1:33pm UTC](https://forum.commonvisionblox.com/t/foundation-binaries-resources-missing/781/7 "2019-05-21T13:33:49Z")

</div>

Thanks a lot, that was the problem
