473,473 Members | 2,253 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 948

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...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.