Author: JORGEMAL | Posted on: 12/11/2008 4:46:45 PM | Views : 369

I am trying to use the GetPassword method ang get the following error message:

Object reference not set to an instance object.
System.NullReferenceException

The code I wrote is:
Dim usrUser as MembershipUser
Dim cPassword As String
Dimn cUser as String
usrUser = Membership.GetUser()
cUser = usrUser.UserName()
cPassword = usrUser.GetPassword()

My web.config file has the follwing parameters:

passwordFormat="Encrypted"
enablePasswordRetrievalGo to the complete details ...