Why Do I get this "Object reference not set to an instance of an object"
- From: sachdeva.rajesh@xxxxxxxxx
- Date: 15 Sep 2006 12:04:26 -0700
public string CreateAuthenticationToken(string strEncryptedUserName,
string strEncryptedPassword)
{
//Microsoft.Web.Services3.Security.Tokens.UsernameToken
userToken = new
Microsoft.Web.Services3.Security.Tokens.UsernameToken(strEncryptedUserName,
strEncryptedPassword, PasswordOption.SendHashed);
UsernameToken objUserToken = new UsernameToken("admin",
"admin");
Security security = null;
try
{
*****************I am getting on this line, Don't why
int strAuthToekn = security.Tokens.Add(objUserToken);
}
catch (Exception strException)
{
throw (strException);
return strException.Message;
}
}
.
- Follow-Ups:
- Re: Why Do I get this "Object reference not set to an instance of an object"
- From: ThunderMusic
- Re: Why Do I get this "Object reference not set to an instance of an object"
- Prev by Date: Windows Service Created Sub-process?
- Next by Date: Re: Why Do I get this "Object reference not set to an instance of an object"
- Previous by thread: Windows Service Created Sub-process?
- Next by thread: Re: Why Do I get this "Object reference not set to an instance of an object"
- Index(es):