Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


René Truelsen
2014-07-23T12:59:36Z
I am adding a task of the type ".NET code execute", where I want to reference to a custom DLL I made.

However - apparently I don't have a clue on how to add this DLL to the list of available references.

I've tried adding it to the C:\Windows\SysWOW64 and system32 folder, the \VisualCron and VisualCron\x86 folder... no change.

Anyone with a clue?

Best regards,
René
Sponsor
Forum information
Support
2014-07-23T13:37:28Z
First use command:

gacutil -i filepath

This adds the dll to GAC. Then go to Add reference from VisualCron and select it.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
René Truelsen
2014-07-24T12:40:20Z
Ok. After a full day of fun and debugging, I finally realised the problem.
The gacutil -i installs to C:\Windows\Microsoft.NET\assembly for .NET 4.0+, and apparently VisualCron doesn't recognize assemblies in this folder.

Instead I had to find a .NET 2.0 version of the assembly and install this using gacutil.exe (which is installed to C:\Windows\assembly) and voila, now it's visible in VisualCron.

This sounds to me like a bug in VisualCron?

I can back this up using screenshots if need be. :)

Best regards,
René
René Truelsen
2014-07-24T13:10:55Z
..hehe...and now the dll cannot be used anyways:

When trying to open it using "Assembly execute" I get: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

And when I try to use it inside a .NET code execute I get a: "Metadata file 'xxx.dll' could not be found"

I guess I am stuck... 🙂
Support
2014-07-25T08:28:35Z
Which version are you using now?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
René Truelsen
2014-07-25T08:51:22Z
Scroll to Top