Unable To Use DataGridView

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

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 9 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.
Locked
MinnesotaJoe
Posts: 1
Last visit: Thu Jul 02, 2020 7:31 am

Unable To Use DataGridView

Post by MinnesotaJoe »

No matter what I do, when I place a DataGridView in as part of the gui and try to run/preview/debug the thing the Output tab shows

Code: Select all

Cannot resolve dependency to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.
I would assume part of what PowerShell Studio does is help with this, but apparently not. How do I resolve this issue?
I verified I do have 'Enable PowerShell V2 assembly compatibility' enabled as well.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Unable To Use DataGridView

Post by jvierra »

PowerShell 2 has been removed by Microsoft. The option is not necessary.
Be sure you are selecting the current version of PowerShell.

Do not attempt to load forms assemblies as PSS will add the correct code when the PSF file is run.

A good way to isolate your issue is to start with the least amount of code and test. Failures with this usually indicate incorrect options or some installation issue.

For product specific issues you can post in the Customer Support forum to get help from Sapien.
User avatar
Lembasts
Posts: 406
Last visit: Mon Apr 15, 2024 3:12 pm
Has voted: 1 time
Been upvoted: 1 time

Re: Unable To Use DataGridView

Post by Lembasts »

Make sure you are running the latest version of PS Studio (179).
This topic is 3 years and 9 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.
Locked