Multiple ambiguous overloads found

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
bszecsod
Posts: 3
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Fri Feb 26, 2016 3:50 am

Multiple ambiguous overloads found

Post by bszecsod »

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.175
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0

*** Please add details and screenshots as needed below. ***
Same problem as in: viewtopic.php?p=77457#p77457


Hi

I have a problem since last update:
"Multiple ambiguous overloads found for "new" and the argument count"

Yesterday I updated using the Update manager, since then when I run my project I’ll get a bunch of errors (one version earlier it was working flawlessly):
  1. >> Running (CFS_Tool_New.psf) Script...
  2.  
  3. >> Platform: V5 64Bit (STA) (Forced)
  4.  
  5. ERROR: Multiple ambiguous overloads found for "new" and the argument count: "3".
  6.  
  7. CFS_Tool_New.Run.ps1 (13043, 2): ERROR: At Line: 13043 char: 2
  8.  
  9. ERROR: +     $button_RemoveSelectedSecgroupChanges.Font = [System.Drawing.Font ...
  10.  
  11. ERROR: +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12.  
  13. ERROR:     + CategoryInfo          : NotSpecified: (:) [], MethodException
  14.  
  15. ERROR:     + FullyQualifiedErrorId : MethodCountCouldNotFindBest
  16.  
  17. ERROR:
  18.  
  19. ERROR: Multiple ambiguous overloads found for "new" and the argument count: "3".
  20.  
  21. …………
  22.  
  23. ERROR: Multiple ambiguous overloads found for "new" and the argument count: "3".
  24.  
  25. CFS_Tool_New.Run.ps1 (16601, 2): ERROR: At Line: 16601 char: 2
  26.  
  27. ERROR: +     $radiobuttonCFSAdmin.Font = [System.Drawing.Font]::new('Microsoft ...
  28.  
  29. ERROR: +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  30.  
  31. ERROR:     + CategoryInfo          : NotSpecified: (:) [], MethodException
  32.  
  33. ERROR:     + FullyQualifiedErrorId : MethodCountCouldNotFindBest
  34.  
  35. ERROR:
  36.  
  37. ERROR: Multiple ambiguous overloads found for "new" and the argument count: "3".
I’m using Hungarian regional settings, and here the separator is a comma ”,” instead of a dot „.”
I belive this is the cause. If I check the „.run.ps1” it shows the lines in question:
  1.     #
  2.  
  3.     # button_RemoveSelectedSecgroupChanges
  4.  
  5.     #
  6.  
  7.     $button_RemoveSelectedSecgroupChanges.Anchor = 'Top, Left, Right'
  8.  
  9.     $button_RemoveSelectedSecgroupChanges.BackColor = [System.Drawing.Color]::LightCoral
  10.  
  11.     $button_RemoveSelectedSecgroupChanges.Font = [System.Drawing.Font]::new('Microsoft Sans Serif', 8,25)
  12.  
  13. ...
It sees the desired font size as a third parameter. Please resolve the issue in a next release, thank you!

Br
Benedek
Last edited by bszecsod on Thu May 14, 2020 4:25 am, edited 1 time in total.

User avatar
bszecsod
Posts: 3
Joined: Fri Feb 26, 2016 3:50 am

Re: Multiple ambiguous overloads found

Post by bszecsod »

I've tested v5.7.176, and that version is completely broken.
It seems, that it converts the values, e.g.: 8,25 -> 82

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.176
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0

I went back to v5.7.174 until these issues resolved.

User avatar
Alexander Riedel
Posts: 7344
Joined: Tue May 29, 2007 4:43 pm

Re: Multiple ambiguous overloads found

Post by Alexander Riedel »

Can you please tell us what OS language/culture setting you use?
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
Alexander Riedel
Posts: 7344
Joined: Tue May 29, 2007 4:43 pm

Re: Multiple ambiguous overloads found

Post by Alexander Riedel »

Nevermind, read your post again. Hungarian.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
brittneyr
Site Admin
Posts: 432
Joined: Thu Jun 01, 2017 7:20 am

Re: Multiple ambiguous overloads found

Post by brittneyr »

Please try service build 5.7.177 and let me know if this issue is resolved for you.
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
bszecsod
Posts: 3
Joined: Fri Feb 26, 2016 3:50 am

Re: Multiple ambiguous overloads found

Post by bszecsod »

Thank you for the update, now it works without issues.