ProfileCommon in an assembly

M

muriwai

Hi, I have a website which used the following web.config:

------
<profile defaultProvider="SqlProfileProvider">
<add name="SqlProfileProvider" type="System.Web.Profile.SqlProfileProvider"
..../>
<properties>
<clear/>
<add name="ProfileInfo" type="My.Profiles.ProfileInfo"/>
------

I then used the dynamically generated ProfileCommon class that had the
ProfileInfo property.

Now I am refactoring the website and I want ProfileCommon to be accessible
in an assembly which is referenced by the website. The problem is that
ProfileCommon is not known to the assembly because the latter knows nothing
about web.config.

What's the correct way to define custom profile properties in an assembly
for them to be also accessible via ProfileCommon?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top