473,394 Members | 1,718 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,394 software developers and data experts.

Not able to access profile

Hello,

On my MVC project I am using Membership and Profile. I added the
following on my Web.Config:

<profile enabled="true">
<properties>
<add name="Company"/>
</properties>
</profile>

On my account controller I tried to use:

Profile.Company = "My Company";

And I get the error:

The name 'Profile' does not exist in the current context

I also tried:

ProfileCommon pc = Profile.GetProfile(myuser.UserName);

And I get the error:

The type or namespace name 'ProfileCommon' could not be found (are you
missing a using directive or an assembly reference?

I tried everything I could think of but I am not able to access
profile.

Is this a problem with MVC, my project, or something else? What am I
missing?

Thanks,

Miguel
Oct 11 '08 #1
0 867

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

Similar topics

0
by: Gauri | last post by:
I have an app that defines a simple profile property. Here's the <profile> element: <profile > <properties> <add name="firstName" type="System.String" allowAnonymous="true"/> </properties>...
1
by: Arnie | last post by:
How can I access Profile information for a non-logged-in user from an app_code business object? I can get Profile info for the logged -in user via HttpContext.Current.Profile. I can get...
0
by: Rodusa | last post by:
I am trying to replace cookies with the new "Asp.net 2.0 profiles" in my shopping cart application, but I am having trouble to access profile properties using HttpContext.Current.Profile. I can...
2
by: Jesse Johnson | last post by:
I have an important question. How would I access profile information on another member? Exaple: John and Sue are both members of an aplpication, but when john is logged in he needs to see Sue's...
1
by: praveenrn | last post by:
Hi, Iam running a webservice in my local machine and wrote dii client to contact it. it was able to do it. But the problem is when i try to contact the server which is at some other location...
0
by: shapper | last post by:
Hello, In my Page.aspx.vb code I have profile.name = MyName Now I want to move this code line to a class in my App_Code folder. However, the line profile.name = MyName is not working. ...
1
by: Steven Nagy | last post by:
Hi all, I want to know if it is possible to have a WCF service hosted in IIS (.svc) that uses the provider model in .Net? Ideally, I'd like the WCF service methods to detect the user's AD user...
1
by: BlueJumper.com | last post by:
Does anyone know how to access a users Profile from the code behind. When using code in-front I can simple Type Profile.Blah but this isn't available in Code Behind Cheers Fran
1
by: Miguel | last post by:
Hello, I have an application used by different profiles. They all share the same pages, but in every page I would like to know the role of the logged user. I can not use a Session Variable. ...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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...

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.