I have this source code listed below. When I run the application I will get message error saying:
The kerberos ticket cannot be retrieved.The RetriveKerbTicket call failed with the following message: There are currently no logon servers available to service the logon request.
What is the problem? Can anyone help me? I am stuck with this problem for 2 months. I need help desperately. Thnx.
private void SubmitButton_Click(object sender, System.EventArgs e)
{
KerberosToken token;
string targetPrinciple;
// Create an instance of the proxy
WeblogProxy proxy = new WeblogProxy();
string hostname = System.Environment.MachineName;
string domainname = System.Environment.UserDomainName;
targetPrinciple = "host/" + hostname;
// Create a KerberosSecurityToken
token = new KerberosToken( targetPrinciple );
// Add the SecurityToken to the Request Context
proxy.RequestSoapContext.Security.Tokens.Add( token );
// Sign the message with a signature object
proxy.RequestSoapContext.Security.Elements.Add( new MessageSignature( token ) );
}
The kerberos ticket cannot be retrieved.The RetriveKerbTicket call failed with the following message: There are currently no logon servers available to service the logon request.
What is the problem? Can anyone help me? I am stuck with this problem for 2 months. I need help desperately. Thnx.
private void SubmitButton_Click(object sender, System.EventArgs e)
{
KerberosToken token;
string targetPrinciple;
// Create an instance of the proxy
WeblogProxy proxy = new WeblogProxy();
string hostname = System.Environment.MachineName;
string domainname = System.Environment.UserDomainName;
targetPrinciple = "host/" + hostname;
// Create a KerberosSecurityToken
token = new KerberosToken( targetPrinciple );
// Add the SecurityToken to the Request Context
proxy.RequestSoapContext.Security.Tokens.Add( token );
// Sign the message with a signature object
proxy.RequestSoapContext.Security.Elements.Add( new MessageSignature( token ) );
}