Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9177029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:14:35+00:00 2026-06-17T17:14:35+00:00

I am using C# MVC using .NET 4.0 I am trying to implement the

  • 0

I am using C# MVC using .NET 4.0

I am trying to implement the ASP.NET Profile Properties seen at

http://msdn.microsoft.com/en-us/library/2y3fs9xs.aspx

First, I added the following in my web.config file. Note that I am trying to store the Location for a given user:

    <profile>
     <properties>
      <add name="Location" />
     </properties>
     <providers>
      <clear />
      <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
     </providers>
    </profile>

Within my code, I used the following:

After I post, I used the following my in controller:

      Profile.Location = model.Location; 

I am getting an error, Cannot resolve ‘Profile’. Has anybody used the Profile Property that can offer any assistance? Note that I wasn’t even able to find the class that is mentioned in the article.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:14:36+00:00Added an answer on June 17, 2026 at 5:14 pm

    A profile would have to belong to a User/Member so you would have to load or create a new User before adding any profile properties to it.

    See this SO post on a similar question

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using ASP.NET MVC plus Entity Framework, and trying to implement a generic repository
I'm trying to implement a paging and sorting list in ASP.NET MVC without using
I'm trying to implement a simple ActionLink that will delete records using ASP.NET MVC.
I am trying to implement a RESTful MVC project using C# and ASP.Net, accordingly
I am trying to implement optional client side validation using ASP.NET MVC 4, unobtrusive
I'm trying to implement a remember me feature using ASP.NET MVC. It uses a
So I am trying to implement Uploadifive 1.0 with Asp.NET MVC. Using the debugger
I am trying to create a Repository using the following tutorial http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application I get
Using ASP.NET MVC when trying to get the information stored on my Session[objectName] from
I am trying to create a custom authentication scheme in ASP.NET MVC using form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.