I have a script which works correctly when I run it manually. When run through Event Broker I get this:
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
APRA-82 with the same problem but can't see what the resolution was after reading through all the comments.
The line that is causing the error is the one where I try and run a SQL query:
Invoke-SQLCmd ($sqlquery -f $timestamp,$MAName,$xmlstring) -SuppressProviderContextWarning
Customer support service by UserEcho