LoadFile-Problem in Form project: "Absolute path information is required."

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 1 year and 1 day 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.
HelmiSokrates
Posts: 12
Last visit: Thu Feb 29, 2024 5:11 am

LoadFile-Problem in Form project: "Absolute path information is required."

Post by HelmiSokrates »

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
by brittneyr » Tue Feb 28, 2023 8:14 am
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 post
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 11:13 am
Answers: 39
Been upvoted: 30 times

Re: LoadFile-Problem in Form project: "Absolute path information is required."

Post by brittneyr »

Can you please provide a screenshot of the Assemblies dialog with your assemblies listed?
Are the assemblies referenced local to the project?
Brittney
SAPIEN Technologies, Inc.
HelmiSokrates
Posts: 12
Last visit: Thu Feb 29, 2024 5:11 am

Re: LoadFile-Problem in Form project: "Absolute path information is required."

Post by HelmiSokrates »

Here it is:
SapienSupport_Assemblies.png
SapienSupport_Assemblies.png (16.7 KiB) Viewed 5734 times
Yes, they are referenced local
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 11:13 am
Answers: 39
Been upvoted: 30 times

Re: LoadFile-Problem in Form project: "Absolute path information is required."

Post by brittneyr »

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.
Brittney
SAPIEN Technologies, Inc.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 11:13 am
Answers: 39
Been upvoted: 30 times

Re: LoadFile-Problem in Form project: "Absolute path information is required."

Post by brittneyr »

Please try build 5.8.219 and let me know if this issue persists.
Brittney
SAPIEN Technologies, Inc.
HelmiSokrates
Posts: 12
Last visit: Thu Feb 29, 2024 5:11 am

Re: LoadFile-Problem in Form project: "Absolute path information is required."

Post by HelmiSokrates »

With the latest build the problem seems to be solved.

Thank you very much!
This topic is 1 year and 1 day 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.