Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey all.
I'm trying to create an AD login for the companies website (using the sample code from http://our.umbraco.org/wiki/how-tos/membership-providers/use-active-directory-to-authenticate-site-members-(intranet) ).
My code throws an error null reference whenever it reaches a line that says:
Member m = Member.GetMemberFromLoginName(Username);
I have got the umbraco.cms.businesslogic.member reference and rest of the code seems to work.
Any Ideas?
Thanks
Alec
Do you have a member in Umbraco with a matching username?
Thats the thing. I have created the user with same name. I have tried both upper and lower case (as well as hard coding in the string) and its returning nothing.
Any ideas?
Are we talking about members or users here?
Actually scratch that. When I implemented the control it worked as should only failed in test environment, the one that visual studio creates.
Thanks anyway simon
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Member returns null
Hey all.
I'm trying to create an AD login for the companies website (using the sample code from http://our.umbraco.org/wiki/how-tos/membership-providers/use-active-directory-to-authenticate-site-members-(intranet) ).
My code throws an error null reference whenever it reaches a line that says:
I have got the umbraco.cms.businesslogic.member reference and rest of the code seems to work.
Any Ideas?
Thanks
Alec
Do you have a member in Umbraco with a matching username?
Thats the thing. I have created the user with same name. I have tried both upper and lower case (as well as hard coding in the string) and its returning nothing.
Any ideas?
Are we talking about members or users here?
Actually scratch that. When I implemented the control it worked as should only failed in test environment, the one that visual studio creates.
Thanks anyway simon
is working on a reply...