Product, version and build: PS Studio 5.8.217
Operating system: Win10 Enterprise
PowerShell version(s): 5.1
Hello,
I just started a fresh Form project.
I added 2 assemblies via file assemblies menu in Startup.pss and see the absolute path in the assembly list.
When executing the script I get following error for each of the assemblies:
ERROR: Exception calling "LoadFile" with 1 argument(s): "Absolute path information is required."
ERROR: In C:\Path\to\project\folder\AnyProject\AnyProject.Run.ps1:24 Zeichen:2
ERROR: + [void][reflection.assembly]::LoadFile('..\..\..\Resources\Assemb ...
ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR: + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
ERROR: + FullyQualifiedErrorId : ArgumentException
When I remove the assemblies from the list and add them via Add-Type in Startup.pss it works.
I have no problem using Add-Type (although I prefer the assembly list), but maybe, if this is identified as bug, it can be fixed.
Kind regards
LoadFile-Problem in Form project: "Absolute path information is required."
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.
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.
-
- Posts: 12
- Last visit: Thu Feb 29, 2024 5:11 am
LoadFile-Problem in Form project: "Absolute path information is required."
Thank you for reporting. There is a bug when adding assemblies to a project's Startup.pss file. I have reported the bug to the development team and will update you when I have more information.
For the time being, please remove the references in the Assemblies dialog and stick to manually adding the assemblies references until a build is released addressing this behavior.
Go to full postFor the time being, please remove the references in the Assemblies dialog and stick to manually adding the assemblies references until a build is released addressing this behavior.
Re: LoadFile-Problem in Form project: "Absolute path information is required."
Can you please provide a screenshot of the Assemblies dialog with your assemblies listed?
Are the assemblies referenced local to the project?
Are the assemblies referenced local to the project?
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
-
- Posts: 12
- Last visit: Thu Feb 29, 2024 5:11 am
Re: LoadFile-Problem in Form project: "Absolute path information is required."
Here it is:
Yes, they are referenced localRe: LoadFile-Problem in Form project: "Absolute path information is required."
Thank you for reporting. There is a bug when adding assemblies to a project's Startup.pss file. I have reported the bug to the development team and will update you when I have more information.
For the time being, please remove the references in the Assemblies dialog and stick to manually adding the assemblies references until a build is released addressing this behavior.
For the time being, please remove the references in the Assemblies dialog and stick to manually adding the assemblies references until a build is released addressing this behavior.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: LoadFile-Problem in Form project: "Absolute path information is required."
Please try build 5.8.219 and let me know if this issue persists.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
-
- Posts: 12
- Last visit: Thu Feb 29, 2024 5:11 am
Re: LoadFile-Problem in Form project: "Absolute path information is required."
With the latest build the problem seems to be solved.
Thank you very much!
Thank you very much!