Asp.net profile in a separate assembly

Posted by Shimrod on Stack Overflow See other posts from Stack Overflow or by Shimrod
Published on 2010-06-01T10:20:51Z Indexed on 2010/06/01 10:23 UTC
Read the original article Hit count: 178

Filed under:
|
|

Hi everyone,

I have a web application which uses membership and profiles. I successfully used the WebProfileBuilder extension, so my profile class is correctly generated, and is working nicely.

However, after a new request of my client, I need now to move that profile management part into another assembly (so I'd be able to get profile information in a windows service running on the same machine).

What I made is created the new assembly, moved my generated profile file, and tried to use it from the other assembly, but without any success. I always get a SettingsPropertyNotFoundException. My tought is that the profile system doesn't know where to find its connection information, so I tried to add the connectionstring and provider in the app.config of this assembly, but this doesn't seem to work.

What am I missing ? Is it possible to do ?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about membership