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">
<add name="SqlProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="UserRepository" applicationName="MyApp" description="SqlProfile for MyApp"/>
Basically, we need to expose the properties in the MyComany.Web.Profile.MyAppProfile. This class inherits ProfileBase and has some pointers to other profile classes containing the actual properties we want to expose:
public class MyAppProfile : ProfileBase
View Complete Post