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.
This topic is 3 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
gadorjan
Posts: 3
Last visit: Fri Feb 02, 2024 4:45 am

Multiple ambiguous overloads found

Post by gadorjan »

*** 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. >> Platform: V5 64Bit (STA) (Forced)
  3. ERROR: Multiple ambiguous overloads found for "new" and the argument count: "3".
  4. CFS_Tool_New.Run.ps1 (13043, 2): ERROR: At Line: 13043 char: 2
  5. ERROR: +     $button_RemoveSelectedSecgroupChanges.Font = [System.Drawing.Font ...
  6. ERROR: +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7. ERROR:     + CategoryInfo          : NotSpecified: (:) [], MethodException
  8. ERROR:     + FullyQualifiedErrorId : MethodCountCouldNotFindBest
  9. ERROR:
  10. ERROR: Multiple ambiguous overloads found for "new" and the argument count: "3".
  11. …………
  12. ERROR: Multiple ambiguous overloads found for "new" and the argument count: "3".
  13. CFS_Tool_New.Run.ps1 (16601, 2): ERROR: At Line: 16601 char: 2
  14. ERROR: +     $radiobuttonCFSAdmin.Font = [System.Drawing.Font]::new('Microsoft ...
  15. ERROR: +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  16. ERROR:     + CategoryInfo          : NotSpecified: (:) [], MethodException
  17. ERROR:     + FullyQualifiedErrorId : MethodCountCouldNotFindBest
  18. ERROR:
  19. 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.     # button_RemoveSelectedSecgroupChanges
  3.     #
  4.     $button_RemoveSelectedSecgroupChanges.Anchor = 'Top, Left, Right'
  5.     $button_RemoveSelectedSecgroupChanges.BackColor = [System.Drawing.Color]::LightCoral
  6.     $button_RemoveSelectedSecgroupChanges.Font = [System.Drawing.Font]::new('Microsoft Sans Serif', 8,25)
  7. ...
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 gadorjan on Thu May 14, 2020 4:25 am, edited 1 time in total.
User avatar
gadorjan
Posts: 3
Last visit: Fri Feb 02, 2024 4:45 am

Re: Multiple ambiguous overloads found

Post by gadorjan »

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: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

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: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

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: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

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
SAPIEN Technologies, Inc.
User avatar
gadorjan
Posts: 3
Last visit: Fri Feb 02, 2024 4:45 am

Re: Multiple ambiguous overloads found

Post by gadorjan »

Thank you for the update, now it works without issues.
This topic is 3 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.