Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

yucikala

Thats it

I Upgrade powershel from 2.0 to 5.1 and all is ok now. Thanks a lot.
martin

Re: Whatever I have .NET 4 installed

But your PowerShell loads an old version of .NET framework for some reason. What version of PowerShell do you have?
yucikala

Whatever I have .NET 4 installed

Must be version 4.0? I have minimaly installed 4.7.2, 4.5.1, 4.6 a 4.6.1 - if I look to programs and functions. As you can see at attachment, my Visual studio has 4.0 framework...

May I some other parts install?
martin

Re: I have problem with powershell after update

yucikala wrote:

I upgrade to 5.15 from version before.

Now when I run powershell script, it failed.
Code:
# Load WinSCP .NET assembly
Add-Type -Path "C:\Program Files (x86)\WinSCP\WinSCPnet.dll"
Add-Type : Nelze načíst soubor nebo sestavení file:///C:\Program Files (x86)\WinSCP\WinSCPnet.dll nebo jeden z jejich závislých prvků. Toto sestavení je vytvořeno modulem runtime, který je novější než aktuálně zavedený modul runtime, a nelze je zavést.
At line:4 char:9
+ Add-Type <<<< -Path "C:\Program Files (x86)\WinSCP\WinSCPnet.dll"
+ CategoryInfo : NotSpecified: (:) [Add-Type], BadImageFormatException
+ FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.AddTypeCommand

What's wrong now? Thanks

Since 5.14, WinSCP .NET assembly requires .NET framework 4.
See https://winscp.net/eng/docs/incompatible_changes
yucikala

I have problem with powershell after update

I upgrade to 5.15 from version before.

Now when I run powershell script, it failed.
Code:
# Load WinSCP .NET assembly
Add-Type -Path "C:\Program Files (x86)\WinSCP\WinSCPnet.dll"
Add-Type : Nelze načíst soubor nebo sestavení file:///C:\Program Files (x86)\WinSCP\WinSCPnet.dll nebo jeden z jejich závislých prvků. Toto sestavení je vytvořeno modulem runtime, který je novější než aktuálně zavedený modul runtime, a nelze je zavést.
At line:4 char:9
+ Add-Type <<<< -Path "C:\Program Files (x86)\WinSCP\WinSCPnet.dll"
+ CategoryInfo : NotSpecified: (:) [Add-Type], BadImageFormatException
+ FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.AddTypeCommand

What's wrong now? Thanks
rdavid2

All Scripts failing since upgrade to 5.15

Yesterday started getting messages about new version of WINSCP and I proceeded to upgrade WINSCP. Tested various sites with GUI with no problem. Then every automated job started failing. The first job I tested connected and got to the username and timed out. I tired a few things I found online and then discovered it was not bringing over the default directories.

I need to get the connections working in the automated scripts or do things manually until we find something that does work.

These scripts have been around for a few years now.

bob davidson