473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ProfileCommon in an assembly

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




May 22 '07 #1
1 2537
Never mind, it seems I need to use "inherits".

"muriwai" <mu*****@nospam.nospamwrote in message
news:OU*************@TK2MSFTNGP05.phx.gbl...
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






May 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Calavera | last post by:
Hi, I have the following line my class Dim objProfile As ProfileCommon = HttpContext.Current.Profile When I compile the class I get the following error. "error BC30002: Type 'ProfileCommon'...
5
by: Lynne | last post by:
I apologize in advance for the lengthy message but wanted to include as much information as possible. Any insight/assistance would be appreciated. The following line of code throws an error when...
7
by: Phil | last post by:
I've started getting this message after doing a publish of an Asp.Net 2.0 (c#) web site. The site uses a custom profile provider - I'm sure there is a relation here, but I can't find it. ...
1
by: AMP | last post by:
Hello, I have enabled Profiles in the web.config and seems to be working fine (I can see the auto generated ProfileCommon class including my custom properties in my \Temporary ASP.NET Files...
1
by: John | last post by:
Hi I am getting the below error when running one of the aspx webforms. What is the problem and how can I fix it? Thanks Regards
2
by: Phil | last post by:
I'm trying to use a custom profile provider and I'm receiving this error message after I deploy a published version of the app. The app works fine when it is run in source code mode. It works...
0
by: dgk | last post by:
I've been trying to figure out how to set up a number of users and profiles for them. Having scanned many messages in this group, I came across one where Brock mentions using ProfileCommon. That...
0
by: Guy Cohen | last post by:
Hi all I have this line: Dim P As New ProfileCommon() Which worked until I added more profile items (It worked when I had a single profile item) Error = Type 'ProfileCommon' is not defined.
1
by: shapper | last post by:
Hello, I am trying to get the profile of a user that is not authenticated. I have the following: ProfileCommon pc = Profile.GetProfile(username) However ProfileCommon is not recognized I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.