473,473 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Custom profile (vb.net assembly)

Hi,

In an assembly I have created a class like this:

<Serializable()_
Public Class Profile : Inherits System.Web.Profile.ProfileBase

'some private vars and public properties

End Class

In the web.config I have the following:

<profile inherits="CompanyName.Web.Profile" />
<sessionState cookieless="true" />

And I am able to retrieve the profile with:

Public Shared ReadOnly Property Profile() As Web.Profile
Get

Return CType(System.Web.HttpContext.Current.Profile, Web.Profile)

End Get
End Property

I am perfectly able to access the profile via the shared property with
each page request, but the profile is not stored in any way. Upon each
page request the Profile is created again (I have some code in the Sub
New which inserts a record in a database, and upon each pagerequest a
new record is inserted), while I thought the class would be saved during
the complete session, even if a user is not authenticated.

Am I missing something here? Do I not fully understand something?

I hope someone can help me out. Thank you very much in advance!

Nano
Jun 7 '07 #1
0 899

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

Similar topics

0
by: getdotnet | last post by:
can anybody guide me to a good example of a custom profile provider (asp.net 2.0)? Cannot find any good implementation.
0
by: mdawid | last post by:
Hi, The problem is the WebSetup never removes the assembly MyCustomAction.dll from the virtual directory. Is there any switch/property telling installer to remove custom action assembly after...
2
by: | last post by:
Hi all, How can I get a reference to my custom profile provider in my .aspx page? I have looked at httpcontext.current.profile. But from there where do I go? Ideally I would like to be able to...
0
by: Phil | last post by:
I created a custom profile provider based on the example here : http://www.theserverside.net/articles/showarticle.tss?id=CreatingProfileProvider It works ok, but when I try to get the last update...
3
by: Rich Armstrong | last post by:
I've implemented a custom profile provider following the pattern and examples provided with ASP.NET 2.0, but no Profile object ever appears in my page; that is, after executing the following, ...
0
by: fredd00 | last post by:
Hi how come the exemples for custom profile providers always iterate through all the properties of a profile , isn't the profile supposed to do 'on-demand lookup' unlike session variables that...
2
by: Darius | last post by:
Hello I implemented custom profile provider based on the example at http://msdn2.microsoft.com/en-us/library/ta63b872.aspx. It reads Profiles values from tables in Sql Server. Everytime when...
10
karlr
by: karlr | last post by:
OK, I know this has been discussed in multiple posts. However, I still have not seen a good example. That is, I have a custom Membership provider using the ASP.NET 2.0 controls. I am restricted...
9
by: Kirk | last post by:
I have successfully, implemented a custom Membership Provider to a SQL 2000 table, however, I am having problems doing the same with a Profile Provider. As I understand it, the steps for both of...
0
by: Nano | last post by:
Hi, In an assembly I have created a class like this: <Serializable()_ Public Class Profile : Inherits System.Web.Profile.ProfileBase 'some private vars and public properties
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
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.