InventorViewCtrl.ocx error - system.outofmemoryexception

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am developing a custom-made ERP system, where I want to show assembly and part previews from Inventor.
I am using InventorViewCtrl.ocx activeX component for it. However it is only working on my computer (where I have also Visual Studio Installed).
On every other computer, where my application is deployed (AnyCPU), I get system.outofmemoryexception error. Did you every encounter this error with this ocx? How to handle it? If I disable code that is loading files into the ocx, then everything is working fine.
I have a second question, too. Am I able to register InventorViewCtrl.ocx without installing autodesk inventor view on client machine? If I try to do so in SysWOW64 folder, I get error: The module "InventorViewCtrl.ocx" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .dll files. ( I always take the ocx file from bin32 folder)
If I take another route and I want to set inventorapprentice and other references to isolated, I get commonlib.dll is missing error, which I cannot add as a reference because dll entry point is missing. I also tried to sign the dll's, because they are do not have a strong name (another error), but I also got some kind of error with inventorapprentice.
The above text is just for description of the strugle that I have already gone through.
The simple question is: How can I use AutodeskInventorView control in my custom application (written in VB.net), so that I can display inventor files to my colleagues without installing inventorView and get it working without the system.outofmemoryexception error or missing dependant dlls errors. Currently, on every machine autodeskInventorView is already installed, because I could not get it work without it, but I always get system.outofmemoryexception error.
Any help would be greatly appreciated.
Thank you.