Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Membership Provider access through WCF web service in Silverlight 2
5 replies. Latest Post by kfekete on October 20, 2008.
(0)
ckiszka@...
Member
11 points
34 Posts
09-29-2008 10:40 AM |
Hello Everyone,
I have created an Authentication and Profile WCF Service. These services are hosted in IIS. Everything works great but I am still lacking a lot of functionality. I want more than just authenticate. If I use the Membership provider in an asp.net website I get all the methods that I am looking for, create user, delete user, reset password and so forth. Is there way to expose these methods as a WCF service?
Thanks
ken tucker
All-Star
16276 points
2,479 Posts
09-29-2008 12:53 PM |
http://blogs.msdn.com/brada/archive/2008/06/08/silverlight-roles-profile-and-authentication-example-updated-for-silverlight-beta2-now-with-visual-state-manager-vsm-goodness.aspx
09-29-2008 1:17 PM |
Thanks Ken but I already have these services. I wanted a way to expose some of the mebership provider/membership user functions like "CreateUser", "ResetPassword" and so forth. These are not avalible in the Authenticate, Profile and Role services.
Right now I am thinking I will have to create a service that implements these methods, duplicate code. I mean if the methods already exist in the membership provider, I did not want to recreate the methods in the Silverlight enabled WCF service. Is thier a better way?
scindy
54 points
15 Posts
09-29-2008 4:21 PM |
The authentication service does not expose all of its methods. In our project we created our own service that calls the extended authentication service. It is duplicating code but at least we can expand it and make it do extra work.
09-29-2008 4:33 PM |
Thanks for your reply. That is exactly what I am doing now. I was just hoping for a faster solution without duplicate code. Now that I know someone else is doing it I feel better.
kfekete
4 points
3 Posts
10-20-2008 5:12 AM |
Hi All,
I've implemented my own membership provider using System.Web.Security.MembershipProvider. I want to access the CreateUser method via my WCF Service, but I get every time exceptions. On client (Silverlight) side Exception "File not found", on the server side "The ConnectionString property has not been initaliazed" or "The membership provider name is invalid" etc.. It's clear for me, because my own provider is implemented into a separate class libary, and don't get a configuration settings via WCF from Silverlight app. My question is then, how can I do that? How can I "send" the configuration settings via WCF? Is it required to implement security certificate by all? Is this a good way to using membership in Silverlight?
Thanks for your help,
Christian from Hungary