|
#1
|
|||
|
|||
The error message returned in the script is "Failed to create process: Logon failure: unknown user name or bad password."
The username and password were implemented into the web.config. The machine is a domain machine so the web.config contains the credentials for the domain user. The user is an admin on the machine. When accessing the build machine via RDP, we use the same credentials. I took your suggestion and modified the code to use the LOGON_WITH_PROFILE option. Rebuilt and re-deployed but the error is still being thrown. |
#2
|
|||
|
|||
You might try specifying the domain in that parameter or prefixing the domain on the username parameter as user@domain and specifying null for the domain parameter.
https://docs.microsoft.com/en-us/win...cesswithlogonw |
#3
|
|||
|
|||
I had domain\username in the web.config, which worked until the script hit Perforce. I took your suggestion and modified the code and attempted a variety of different scenarios. Unfortunately, none of the changes eliminated the error with Perforce.
I tried username@domain.com and passing null as the domain parameter. When doing so, I wasn't able to connect to the weblauncher. When I revert back to domain\username, I am able to connect to the weblauncher. As I had been attempting to use a domain user, I decided to try a local user. So I created a local user and made the user an admin. I passed the credentials for the local user. And I was able to bypass the Perforce error. It would appear to be an issue with CreateProcessWithLogonW and Perforce using a domain user. I did come across an article from a few years ago that described a similar situation. One poster mentioned the user might not have access to the share, even if the same credentials are passed. https://bytes.com/topic/c-sharp/answ...cesswithlogonw |
Thread Tools | |
Display Modes | Rate This Thread |
|
|