R – Form based authentication – Login get fails

mosssharepointwss

I am using form based suthentication in my site. I have used one custom user control in my site which read items in sharepoint list and display it in a grid. Everything works fine with windows authentication but when I change the authentication to form based the login process get fails. I see the Error log it is giving me an error saying that

"An SPRequest object was not disposed before the end of this thread"

Then I have dispose all my spweb and spsite object that I have used in user control but still login process is not wotking.

Thanks in advance

Best Answer

Try not disposing your SPSite object within your method.

Related Topic