- 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.
Package file - The directory name is invalid
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.
- abrahamlowell
- Posts: 24
- Last visit: Tue Mar 19, 2024 3:13 am
Re: Package file - The directory name is invalid
We will investigate. Is this a local user or domain user only?
David
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- abrahamlowell
- Posts: 24
- Last visit: Tue Mar 19, 2024 3:13 am
Re: Package file - The directory name is invalid
- 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.
- The user account that I am using to create & package the script is not a domain administrator.
- abrahamlowell
- Posts: 24
- Last visit: Tue Mar 19, 2024 3:13 am
Re: Package file - The directory name is invalid
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.
- 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.
- abrahamlowell
- Posts: 24
- Last visit: Tue Mar 19, 2024 3:13 am
Re: Package file - The directory name is invalid
- ok, so the above only worked in my lab environment.
- it does not work in my production environment.
any idea why this is happening?
- it does not work in my production environment.
any idea why this is happening?
Re: Package file - The directory name is invalid
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
We will be releasing a service build soon that should hopefully resolve this issue.
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- abrahamlowell
- Posts: 24
- Last visit: Tue Mar 19, 2024 3:13 am
Re: Package file - The directory name is invalid
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.
Please note that the error is produced even if the "run as specified" account is added to the local machine.
- abrahamlowell
- Posts: 24
- Last visit: Tue Mar 19, 2024 3:13 am
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Package file - The directory name is invalid
Please understand that it's a weekend.
David will be back Monday.
David will be back Monday.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Package file - The directory name is invalid
Please try the last service build. You will have to repackage your script to test.
David
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.