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.


gsimmons31
2013-01-17T15:47:57Z
I have been trying out VisualCron 6.1.8 for a few days now. I am having problems executing Powershell tasks that use the SQL Server 2008 R2 snapins. I am pretty sure this is related to VisualCron requiring and using the .Net 4 framework (which, by the way, would be really nice to know beforehand--the system requirements documentation really needs to be updated to reflect this).

The problem is that when running a script that loads the snapins from a Powershell task, the task fails with the message:

Quote:

Exception in Task: 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. 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.



If I run the same script from an Execute task with "powershell" as the command the script executes properly without error if the "Run Task as" is run under the same credentials used in the Powershell task and it is set to "Run with API code".

If I run the Execute task as "Managed Code" I get a "non zero exit code" error.

After scouring the forums what little information I could find seems to indicate that the API is still using the .Net 2 framework while VisualCron itself now uses the .Net 4 framework.

Can you please let me know how to fix this so that I can actually run the Powershell task? While running Powershell via the Execute task is a valid workaround, my concern is if and when the API code is recompiled to use .Net 4 this workaround will no longer be valid.

VisualCron is installed on a Windows 7 Professional workstation. The Powershell script lives and is executed on the same machine.

Thanks.
Sponsor
Forum information
Support
2013-01-17T22:51:51Z
Hi,

does it make any difference if you do the following procedure:

1. stop the VisualCron service
2. download the attachment and extract it in the root installation folder
3. start the visualcron service
4. connect again after 30 seconds
5. run the Task
File Attachment(s):
VisualCronService.exe.zip (1kb) downloaded 59 time(s).

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
gsimmons31
2013-01-17T23:36:59Z
That does indeed seem to have fixed the problem. I was able to execute the script from both a Powershell task as well as an Execute task. Thank you!

Support
2013-01-18T08:05:49Z
Great, thanks for the feedback!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top