We have developed a powershell snap-in which calls the C# ReadAllBytes function to read a file into a byte array. This has been tested and works correctly when run from a powershell script.
However, when we try and run the same powershell script using a FB "Execute Powershell Script" component, that process hangs at this point.
Actually we have got around this issue by moving the line of code (not sure why this would work but may be related to the issue we have now…)
We are now making a call to a Dynamics CRM webservice, and again the script hangs at this point. The CRM webserver does not appear to receive the call. Just to re-iterate, these calls all work perfectly when called in a powershell script outside of FB (on the same machine - it’s the same script…) but do not function correctly when called from within FB.
Are there any security implications or anything similar we need to be aware of when executing PS scripts from Final Builder…?
More information - running the ps scripts from a FB “Dos Command” using the following command C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe “C:\Users\administrator.TISSKIDEV\Documents\untitled1.ps1” also works correctly - it’s just calling it from the FB “Execute Powershell Script” which has the issue…