imitchell - Friday, August 19, 2011 1:18 PM:
Hi folks,
Section 11.1 of the Progammer Guide says:
"A .NET version of IOM.dll can be found in the Innovator/Server/bin directory and may be copied to another location and referenced by .NET project." It is not clear to me how the IOM.dll is referenced by my C# dll. How is the IOM.dll visible at runtime? Thanks much Ian
Brian - Sunday, August 21, 2011 5:22 AM:
Hi Ian,
Find the IOM.dll and copy it somewhere useful.
Open your C# IDE and go to References and right click to add a reference.
Select "Browse" and find the IOM.dll that you copied. Select it.
You now have a reference to the IOM.dll in your project and can use it the same way you would any other object library.
Cheers,
Brian
imitchell - Tuesday, August 23, 2011 4:22 AM:
Hi Brian,
Thanks for your continued help.
I guess that last instruction of yours (You now have a reference to the IOM.dll in your project and can use it the same way you would any other object library.) is what I am hung up on.
What do you do with the IOM.dll file so it is seen at runtime vs. just build time? (i'm just not familiar with windows)
Thanks again,
Ian
Brian - Wednesday, August 24, 2011 9:54 PM:
Hi Ian,
When you distribute your program you have to distribute a copy of the IOM.dll with it.
Then it is available when the user runs the program.
Cheers,
Brian.
imitchell - Thursday, August 25, 2011 9:31 AM:
Brian,
Thanks - I guess I'm hung up on how to actually make it visible to .net, since .net does not use PATH.
I've gone through a few iterations using gacutil - but somehow that actually make the Aras Admin gui give me a "Method Not Found" error on most operations. I must be doing something on the backend install that is making Windows confuse Aras (and confuse me!).
So my question is how does one properly integrate their .dll, the IOM.dll, and .Net?
Thanks,
Ian
Brian - Friday, August 26, 2011 7:20 AM:
Ian,
Send me an email to [email protected]
I will send you a document that might help
Cheers,
Brian.
jjlong - Friday, August 26, 2011 8:00 AM:
Have you followed these steps in section 11.2 of the Programmers Guide?
"COM-compatible version of IOM.dll is included in the Aras Innovator installation and resides in the InnovatorClientcbin directory. This assembly can be used to build Windows applications in VB6 or VC++ or write, for example, VBA office macros or Windows Scripting Host applications (VBScript or Jscript).
The DLL must register in order to use. The steps to do so are as follows:
- Copy IOM.dll into a local folder.
- Open a DOS window and enter the regasm command to register the DLL:
regasm IOM.dll /tlb /codebase /verbose
If the assembly was successfully registered it must appear in the list of available COM references as “Aras API”. Add the reference to you project........"
Note that RegAsm.exe is part of the .Net Framework and not on the PATH, so you will need to fully path the command from the version of .Net you have installed. For example, open a command prompt set to the directory where you have copied IOM.DLL and issue a command such as:
C:WINDOWSMicrosoft.NETFrameworkv2.0.50727 egasm IOM.dll /tlb /codebase /verbose
Hope this helps.
imitchell - Friday, August 26, 2011 10:00 AM:
Hi Jeff,
Thanks for helping out!
The solution I have inherited is a .net solution so I need to base my approach on section 11.1
Thanks,
Ian