|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Why Do I get this "Object reference not set to an instance of an object"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; } } you set security to null 1 line higher... you can't call a property of
security if it's null... I hope it helps ThunderMusic <sachdeva.raj***@gmail.com> wrote in message Show quoteHide quote news:1158347064.188486.185020@i42g2000cwa.googlegroups.com... > 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; > } > } >
GET the real content of a .p7m file with CAPICOM
IIS 6.0 Bug? SecurityExcepion inside DLL linked in an HTML tag OBJECT System.UnauthorizedAccessException - Using win forms application opening file - Urgent Data Acess aplication block Saving config file - System.UnauthorizedAccessException Active Directory User Creation Issues Remoting IPCChannel security with Service Data Acess aplication block __How to use it on server without Microsoft Visual Studio 2003 Help-Please!!! |
|||||||||||||||||||||||