Asked by:
配置SOA实例时总是出错,说我登陆到头节点的用户名和密码错误

Question
-
配置SOA实例时总是出错,说我登陆到头节点的用户名和密码错误,可是我明明代码里有写正确的。而且密码我已经在代码里写了,它运行时还是提示输入连接到头节点的密码,在dos里输入发现它根本没有任何显示,接着问我是否记住密码,点击记住,还是让我输入,如此三次后提示出错。
代码: SessionStartInfo info = new SessionStartInfo("DC", "CalculatorService");
//info.ShareSession = true;
info.Username = "MEDESIGN\\Administrator";
info.Password = "Sql123";
//create an interactive session
using (Session session = Session.CreateSession(info))错误信息:
在 System.Security.Authentication.AuthenticationException 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
在 System.ComponentModel.Win32Exception 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
“Client.vshost.exe”(托管(v4.0.30319)): 已加载“C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.resources\v4.0_4.0.0.0_zh-Hans_b77a5c561934e089\System.resources.dll”
在 System.Security.Authentication.InvalidCredentialException 中第一次偶然出现的“System.dll”类型的异常
在 System.Security.Authentication.InvalidCredentialException 中第一次偶然出现的“System.dll”类型的异常
在 System.ServiceModel.Security.SecurityNegotiationException 中第一次偶然出现的“System.ServiceModel.dll”类型的异常
在 System.ServiceModel.Security.SecurityNegotiationException 中第一次偶然出现的“System.ServiceModel.Internals.dll”类型的异常
在 System.ServiceModel.Security.SecurityNegotiationException 中第一次偶然出现的“System.ServiceModel.Internals.dll”类型的异常
在 System.ServiceModel.Security.SecurityNegotiationException 中第一次偶然出现的“System.ServiceModel.Internals.dll”类型的异常
在 System.ServiceModel.Security.SecurityNegotiationException 中第一次偶然出现的“System.ServiceModel.Internals.dll”类型的异常
在 System.ServiceModel.Security.SecurityNegotiationException 中第一次偶然出现的“System.ServiceModel.Internals.dll”类型的异常
在 System.ServiceModel.Security.SecurityNegotiationException 中第一次偶然出现的“System.ServiceModel.Internals.dll”类型的异常
在 System.ServiceModel.Security.SecurityNegotiationException 中第一次偶然出现的“System.ServiceModel.Internals.dll”类型的异常
在 System.ServiceModel.Security.SecurityNegotiationException 中第一次偶然出现的“System.ServiceModel.Internals.dll”类型的异常
在 System.ServiceModel.Security.SecurityNegotiationException 中第一次偶然出现的“mscorlib.dll”类型的异常
在 System.ComponentModel.Win32Exception 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
在 System.Security.Authentication.AuthenticationException 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
在 System.ComponentModel.Win32Exception 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
线程 '<无名称>' (0x16f4) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0x1328) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0x75c) 已退出,返回值为 0 (0x0)。
线程 '<无名称>' (0x12e8) 已退出,返回值为 0 (0x0)。
在 System.ComponentModel.Win32Exception 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
在 System.Security.Authentication.AuthenticationException 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
在 System.ComponentModel.Win32Exception 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
在 System.ComponentModel.Win32Exception 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
在 System.Security.Authentication.AuthenticationException 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
在 System.ComponentModel.Win32Exception 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
在 System.Security.Authentication.AuthenticationException 中第一次偶然出现的“Microsoft.Hpc.Scheduler.Session.dll”类型的异常
“System.Security.Authentication.AuthenticationException”类型的未经处理的异常出现在 Microsoft.Hpc.Scheduler.Session.dll 中。
其他信息: 登录失败: 未知的用户名或错误密码。Thursday, June 19, 2014 8:12 AM
All replies
-
你可以试着用powershell来测试一下你用的用户名和密码, 如果用户名密码不对,会显示“Logon failure”.
另外,MEDESIGN\Administrator 是hpc的user吗?
PS D:\Windows\system32> add-pssnapin Microsoft.HPC
PS D:\Windows\system32> $pass=Convertto-SecureString Sql123 -asplaintext -force
PS D:\Windows\system32> $mycred=New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList MEDESIGN\Administrator,$pass
PS D:\Windows\system32> Set-HpcSoaCredential -Scheduler [[yourHPCHeadnode]] -Credential $mycred
Set-HpcSoaCredential : Logon failure: unknown user name or bad password. If you want to set a certificate, please use
hpccred command to do that. This command doesn't support setting a certificate.
At line:1 char:1
+ Set-HpcSoaCredential -Scheduler XLT204-HN1 -Credential $mycred
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Microsoft.Compu...etSoaCredential:SetSoaCredential) [Set-HpcSoaCredential
], AuthenticationException
+ FullyQualifiedErrorId : Microsoft.ComputeCluster.CCPPSH.SetSoaCredentialPS D:\Windows\system32> Set-HpcJobCredential -Scheduler [[yourHPCHeadnode]] -Credential $mycred
Set-HpcJobCredential : Authentication failure: System error. Please check your credentials and try again.
At line:1 char:1
+ Set-HpcJobCredential -Scheduler XLT204-HN1 -Credential $mycred
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Microsoft.Compu...etJobCredential:SetJobCredential) [Set-HpcJobCredential
], SchedulerException
+ FullyQualifiedErrorId : Microsoft.ComputeCluster.CCPPSH.SetJobCredentialFriday, June 20, 2014 2:47 AM -
感谢回复!请问怎么用powershell测试一下我用的用户名和密码。另外,MEDESIGN\Administrator是HN的用户名Saturday, June 21, 2014 7:36 AM
-
你好,我用powershell试了一下,确实是登陆失败,用户名和密码不对,可是我用同样的用户名和密码可以登陆头节点的远程桌面啊,这是为什么?Sunday, June 22, 2014 2:46 PM
-
1. 确认MEDESIGN\Administrator是域用户,而不是本地用户
2. 确认MEDESIGN\Administrator是HPC用户,(打开HPC管理UI,在配置里面看看MEDESIGN\Administrator是不是HPC的用户)
- Edited by zhongl1 Monday, June 30, 2014 5:12 AM
- Proposed as answer by qiufang shiMicrosoft employee Tuesday, August 26, 2014 1:51 PM
Monday, June 30, 2014 5:11 AM