West Wind Internet and Client Tools
Unable to load CLR Instance Error
Gravatar is a globally recognized avatar based on your email address. Unable to load CLR Instance Error
  Ralf Link
  All
  Sep 29, 2021 @ 12:49am

We are getting the error “Unable to load CLR Instance Error”.

The files are not blocked. Test prog wwDotnetBridge shows .NET Version 4.8 On the developper machine it runs fine. On a 2012 R2 Terminal Server not.

What else can we check / do?

Gravatar is a globally recognized avatar based on your email address. re: Unable to load CLR Instance Error
  Ralf Link
  Ralf Link
  Sep 29, 2021 @ 01:10am

yes: The files are not blocked. Test prog wwDotnetBridge shows .NET Version 4.8

Gravatar is a globally recognized avatar based on your email address. re: Unable to load CLR Instance Error
  Tore Bleken
  Ralf Link
  Sep 29, 2021 @ 01:32am

Another user with the same problem found that a computer restart fixed it.

If that doesn't help, try Googling this: "Unable to load CLR Instance Error site:west-wind.com"

Gravatar is a globally recognized avatar based on your email address. re: Unable to load CLR Instance Error
  Rick Strahl
  Ralf Link
  Sep 29, 2021 @ 11:51am

What is OS on the target machine that this is running on?

If it's a pre-Windows 7 or Windows server 2012 machine you may not have .NET 4.x installed. Also the network loading config setting may be required RDP access.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Unable to load CLR Instance Error
  Ralf Link
  Rick Strahl
  Oct 6, 2021 @ 06:57am

Thanks for the hints. It is not a problem of the target machine, it is our application.

I found out that the creation "lnDispHandle = ClrCreateInstanceFrom(FULLPATH("wwDotNetBridge.dll"),"Westwind.WebConnection.wwDotNetBridge",@lcError,@lnSize)" in (wwDotnetBridge.prg) in our application fails. FULLPATH("wwDotNetBridge.dll") points to the temporary folder - there is no dll.

I changed that path to the application folder and now it is working.

If you can explain wy, it would be interesting. In any case we got a solution.

© 1996-2024