Build: v5.6.159
OS: Windows Server 2012 R2 Standard (64 Bit)
Build: v6.3.9600.0
Hi, I have a project originally created in Powershell Studio 2017 but have recently upgraded to 2019 to take advantage of some of the new features. When running the form application many of my custom modules and functions now fail (mainly those passing credentials, but this could be a red herring), yet when compiling the project into an executable everything works fine.
The form code, and filesystem structure of files has not changed at all. The project is set to "V5 - 64bit", yet the Console (using 64-bit) loads the module fine. Note I have upgraded to the latest build released last week to see if this resolved the problem. The error is:
Code: Select all
>> Running (Veeam-Backups.psproj) Project Script...
>> Platform: V5 64Bit (STA) (Forced)
ERROR: Invoke-CWMWebRequest :
CWManage.psm1 (417, 19): ERROR: At Line: 417 char: 19
ERROR: + ... $Result = Invoke-CWMWebRequest -Arguments $WebRequestArguments
ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
ERROR: + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-CWMWebRequest
Code: Select all
ERROR: Invoke-webrequest : Configuration system failed to initialize
Globals.ps1 (96, 12): ERROR: At Line: 96 char: 12
ERROR: + ... $result = Invoke-webrequest -UseBasicParsing -Uri $url -Body $body ...
ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: + CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], ConfigurationErrorsException
ERROR: + FullyQualifiedErrorId : System.Configuration.ConfigurationErrorsException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
ERROR:
ERROR: ConvertFrom-Json : Cannot bind argument to parameter 'InputObject' because it is null.
I'm going to try a fresh install on another machine, even with just a trial to be honest as I can test a blank form with the module and see if it connects, will report back with my findings.
Edit: Same issue on a fresh install on another computer, have updated the title as both the functions and module contain Invoke-WebRequest (to independent systems) so am wondering if this is the cause.