This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem using LicensingFacade.dll WO.NET

Hello,

I am currently working in the same project described in this two threads that my teacher did when she was working in her masters degree thesis and wasn't able to finish it for time reasons:

http://communities.bentley.com/products/hydraulics___hydrology/f/5925/t/100796#pi20068filter=all&pi20068scroll=false

http://communities.bentley.com/products/hydraulics___hydrology/f/5925/t/100798

Basically what the program tries to do is to run an optimization model and then analyze the results in HAMMER.

Right now I'm experiencing an issue with the LicensingFacade.dll, but everytime I use it this error appears "The Specified module could not be found (Exception from 0x8007007E)". I tried doing what the note in the WO.NET programming guide says:

"Note: standard procedure if you receive errors or warnings, or are unable to obtain a license for unknown reasons, is to first run the License Management Tool. Use Tools-Options to double-check the SELECT Server Settings. Then use Tools-Send Logs Now."

But the problem still persist. I am using the Student license that my university provides me, so I can't access the Bentley Developer Network community where I have read this kind of threads are handled.

Also, can it be an issue that I'm working with the same WaterObjects.NET that my teacher used 2 years ago? If so, what can I do to get a newer version?

I'll be gratefull with any kind of help, It's been weeks since I'm stuck with this problem.

Juan Sebastian.

  • Juan Sebastian,

    Copy the "Bentley.liclib.dll" file from the installation folder into the output folder of your sample. If you're building on the x86 platform copy the file from the root of the install folder (i.e. %ProgramFiles%\Bentley\WaterGEMS), but if you're building on the 64 bit platform copy it from the x64 folder (i.e. %ProgramFiles%\Bentley\WaterGEMS\x64). *Note that some systems will take you to “C:\Program Files” with the “%ProgramFIles%” variable. The hydraulics and hydrology products are installed to “C:\Program Files (x86)”, however, which is where the Bentley\WaterGEMS folder would be located.

    Regards,
    Mark

    Mark

  • Hi Mark,

    I copied the file that you told me into the output folder, but the error is still appearing. Don't I need to make a reference? or am I missing another DLL file?

    Juan Sebastian.
  • Hi Juan Sebastian,

    If copying that file didn't work, and you have the rights, try copying the output from your sample (typically in bin/x86/release or bin/x64/release (or bin/x86/debug or bin/x64/debug)) into the appropriate folder in C:\Program Files (x860\Bentley\WaterGEMS (remember, the root is x86 and the x64 folder is for x64 platform) and run your sample from that location.

    If you do not have the rights to copy files into the Program Files location you can go in the other direction. Just copy everything from the appropriate folder into the output folder - i.e. bin/x86/release or bin/x64/release. Then just compile and run your program and everything you need should be present.

    The Bentley.liclib.dll file is not a .NET dll so it cannot be directly referenced. It just needs to be in either the current path or in a path specified in the %PATH% environment variable.

    I hope that is helpful.

    Kris

    Answer Verified By: Juan Sebastian Gómez Pinto 

  • Thank you so much Kris,

    I tried copying the output to the folder in program files and it worked perfectly.

    Juan Sebastian.