Author: gixen | Posted on: 10/13/2010 6:44:23 AM | Views : 275

Hi.
I'm not sure if this is the right place to post, but here it goes.
We've been using the asp.net Profile system for a while now, but now we want to access Profiles, Roles etc. from a WCF service.
We have a problem with the ProfileService, probably because the ProfileService doesn't know our custom profile classes (KnownType).
Here is what we have in web.config for the service:
<profile inherits="MyCompany.Web.Profile.MyAppProfile" defaultProvider="SqlProvider" enabled="true" automaticSaveEnabled="true">
      <providers>
        <clear/>
        <add name="SqlProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="UserRepository" applicationName="MyApp" description="SqlProfile for MyApp"/>
&nb ...

Go to the complete details ...