Help implementing Forum.Businesslogic.Services.IMemberIdConverter
I'm using a custom membership provider and I'm getting the following exception when creating a new topic.:
Thread information: Thread ID: 58 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at uForum.Configuration.ConverterFactory.GetProviderKeyConverter() at uForum.Businesslogic.Services.AuthorizationService.GetUserId() at uForum.Businesslogic.Services.PostingService.NewTopic(Int32 forumId, String title, String body) at uForum.usercontrols.uForum.NewForumTopic.create_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The front page of this site states 'Forum basics uses ASP.NET membership, and should be able to support and membership provider that your site uses. You just need to implement a small interface (uForum.Businesslogic.Services.IMemberIdConverter) in order to convert the membership providers member ID (which is an Object) to and from a string.'
Do you have an example of this or further instructions anywhere?
I have not tried with the app_code folder, but I'm using umbracos own TypeFinder, so if that supports it, then it should work. Let me know how it goes :)
I've got this working now. I copied the code for UmbracoMemberIdConverter.cs and changed the CanHandle method to point to my membership provider and placed the code in my app_code folder.
Help implementing Forum.Businesslogic.Services.IMemberIdConverter
I'm using a custom membership provider and I'm getting the following exception when creating a new topic.:
Thread information:
Thread ID: 58
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at uForum.Configuration.ConverterFactory.GetProviderKeyConverter()
at uForum.Businesslogic.Services.AuthorizationService.GetUserId()
at uForum.Businesslogic.Services.PostingService.NewTopic(Int32 forumId, String title, String body)
at uForum.usercontrols.uForum.NewForumTopic.create_Click(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The front page of this site states 'Forum basics uses ASP.NET membership, and should be able to support and membership provider that your site uses. You just need to implement a small interface (uForum.Businesslogic.Services.IMemberIdConverter) in order to convert the membership providers member ID (which is an Object) to and from a string.'
Do you have an example of this or further instructions anywhere?
The source uses this method itself for the umbraco membership provider, so take a look at that converter:
http://uforum.codeplex.com/SourceControl/changeset/view/52608#760793
As long as you implement that interface, it should be picked up by uForum
So I need to write a similar converter, but for my specific membership provider?
Do I need to compile the code and place the dll in the bin folder, or add the code to the app_code folder to add this?
I have not tried with the app_code folder, but I'm using umbracos own TypeFinder, so if that supports it, then it should work. Let me know how it goes :)
Thanks.
I've got this working now. I copied the code for UmbracoMemberIdConverter.cs and changed the CanHandle method to point to my membership provider and placed the code in my app_code folder.
is working on a reply...