When using Run PowerShell schedule or workflow steps, if you use Cmdlets that are only available in PowerShell 4.0 (such as Invoke-Sqlcmd), you may see an error in the schedule or workflow history that gives the name of the cmdlet and the message:
"Mixed mode assembly is built against version 'v2.0.50727' of the run time and cannot be loaded in the 4.0 runtime without additional configuration information"
If this occurs you will need to create .net config files for Panel Tools and Panel Service.
In C:\Program Files\SoftwareIDM\PanelTools create two files:
- PanelTool.exe.config
- SoftwareIDM.PanelService.exe.config
The content of the files should be:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> </startup> </configuration>
Comments
0 comments
Please sign in to leave a comment.