Package file - The directory name is invalid

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 10 years and 4 days 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
abrahamlowell
Posts: 24
Last visit: Tue Mar 19, 2024 3:13 am

Package file - The directory name is invalid

Post by abrahamlowell »

- Wrote a simple code to stop a windows service on a remote computer when pressing on button "Stop Service".
- In the Script Packager dialog, in the Security tab, Execution = Run as specified user. Alternate credentials is specified in the format: username@domain.net
- After the build is complete, when executing the .exe, it throws an error: "The directory name is invalid".

Any idea? Please help.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Package file - The directory name is invalid

Post by davidc »

We will investigate. Is this a local user or domain user only?

David
David
SAPIEN Technologies, Inc.
User avatar
abrahamlowell
Posts: 24
Last visit: Tue Mar 19, 2024 3:13 am

Re: Package file - The directory name is invalid

Post by abrahamlowell »

- Alternate credential is a domain user and is also a local administrator on the target computer.
- The user account that I am using to create & package the script is not a domain administrator.
User avatar
abrahamlowell
Posts: 24
Last visit: Tue Mar 19, 2024 3:13 am

Re: Package file - The directory name is invalid

Post by abrahamlowell »

ok, I have some more data for you.

- If a Domain User packages the script to .exe, upon execution, it throws error: "The directory name is invalid"

- If a Domain Admin packages the script to .exe, upon execution, it does not throw any error and the executable runs.
User avatar
abrahamlowell
Posts: 24
Last visit: Tue Mar 19, 2024 3:13 am

Re: Package file - The directory name is invalid

Post by abrahamlowell »

- ok, so the above only worked in my lab environment.
- it does not work in my production environment.
any idea why this is happening?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Package file - The directory name is invalid

Post by davidc »

When querying the application's path,.NET tries to create a directory (why? we don't know) and if the account doesn't exist on the local machine, it fails and produces the error message.

We will be releasing a service build soon that should hopefully resolve this issue.

David
David
SAPIEN Technologies, Inc.
User avatar
abrahamlowell
Posts: 24
Last visit: Tue Mar 19, 2024 3:13 am

Re: Package file - The directory name is invalid

Post by abrahamlowell »

Thanks David. Very much appreciated. Looking forward to a fix for this issue.
Please note that the error is produced even if the "run as specified" account is added to the local machine.
User avatar
abrahamlowell
Posts: 24
Last visit: Tue Mar 19, 2024 3:13 am

Re: Package file - The directory name is invalid

Post by abrahamlowell »

David - do you have any updates on this?
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: Package file - The directory name is invalid

Post by Alexander Riedel »

Please understand that it's a weekend.
David will be back Monday.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Package file - The directory name is invalid

Post by davidc »

Please try the last service build. You will have to repackage your script to test.

David
David
SAPIEN Technologies, Inc.
This topic is 10 years and 4 days 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.