473,326 Members | 2,081 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,326 software developers and data experts.

Current user profile

Hi,

I want to access the profile from the current user. Shouldn't it be as
simple as:

Profile.PostalCode = "1000";

However, when I write Profile on my C# code it is not recognized. Do I
need to import any namespace?

In my Web.Config I have:

<profile defaultProvider="ProfileProvider" enabled="true">

<providers>
<clear/>
<add
applicationName="MyApp"
connectionStringName="ApplicationServices"
name="ProfileProvider"
type="System.Web.Profile.SqlProfileProvider, System.Web,
Version = 2.0.0.0, Culture = neutral, PublicKeyToken =
b03f5f7f11d50a3a"/>
</providers>

<properties>
<add name="Bio" type="MyApp.Security.Bio" serializeAs="Binary"
allowAnonymous="false" />
<add name="Visitor" type="MyApp.Security.Visitor"
serializeAs="Binary" allowAnonymous="true" />
<add name="PostalCode" />
</properties>

</profile>

Am I doing something wrong?

Thanks,
Miguel
Oct 11 '08 #1
0 913

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

Similar topics

0
by: Pavils Jurjans | last post by:
Hallo, After installing the dot-NET framework on my PC, I see that a new user profile has been created. I wouldn't bother if that would be just a new 'user' created, but why the whole profile?...
1
by: \Rob\ | last post by:
Why does my ASPNET application create a IWAM_<machinename> user profile? Obviously it runs under the security context of this account but I'm not sure why it creates this profile. I am on a...
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
3
by: JJ | last post by:
Whats the best way to do this?: Users from different companies need to log into a web site. I want to add the users company name, address etc to their profile. However I want the company details...
1
by: ranju | last post by:
I am trying to spawn a process (say an exe file) with different user crendentials than that of the current user. 1) Called LogonUserEx() to logon the user and recieve a handle to the token that...
4
by: Scott M. | last post by:
When profile data is stored in ASP .NET, where is the user data persisted? For how long is it persisted: is it session persisted or permanent (like a cookie)?
2
MattFitzgerald
by: MattFitzgerald | last post by:
Hi hope some one can help I have 2 questions:- Question 1) When saving a file in access to excel how do I specify current date Question2) When saving a file in access to excel how do I specify...
0
by: shaikhcons | last post by:
I am working on a program that will delete a user profile from server 2003, I can use delprof in a cmd but this is a very basic way to clear my server with old unwanted user profile. I am looking...
5
by: geoffreyfishing | last post by:
I have tried posting everywhere, but no one has given me an answer so far. I am willing to try everything short of a clean install of vista. My Problem: Some process has a locking handle on the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.