0x800401D0 Error when using GenerateHttpUrl.WinSCPextension.ps1

Advertisement

12Centuries
Joined:
Posts:
2

0x800401D0 Error when using GenerateHttpUrl.WinSCPextension.ps1

I am attempting to use GenerateHttpUrl.WinSCPextension.ps1 for the first time. It keeps generating the following error:
Exception calling "SetText" with "1" argument(s): "OpenClipboard Failed (Exception from HRESULT: 0x800401D0 (CLIPBRD_E_CANT_OPEN))"

I changed line 112 from:
[Windows.Clipboard]::SetText($result)
to:
[Windows.Clipboard]::SetDataObject($result)
and it seems to work now. I wasn't able to find any other reference to this problem, but I thought you should know about it.

This is on Windows 7, WinSCP 5.17.10 (build 11087)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: 0x800401D0 Error when using GenerateHttpUrl.WinSCPextension.ps1

Thanks for your report. Does restart help to make the original version working? Do you have any software running/installed that may interfere with the clipboard?

Reply with quote

12Centuries

Re: 0x800401D0 Error when using GenerateHttpUrl.WinSCPextension.ps1

Restarting has no effect. I have no software the interacts with the clipboard. I stopped any programs or services that could have potentially interfered, such as VNC and AutoHotKey.

I have this SetDataObject workaround that works for me, but I thought I should let you know.

Reply with quote

onapps
Joined:
Posts:
1

I am also getting this error recently.
Can you please tell me in which file should I change SetText to SetDataObject?
Thanks.

Reply with quote

Advertisement

You can post new topics in this forum