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 7899771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:47:42+00:00 2026-06-03T08:47:42+00:00

I know that ProfileCommon is not available in a Web Application Project (WAP), but

  • 0

I know that ProfileCommon is not available in a Web Application Project (WAP), but I am using the Website type instead. I put this into my web.config file

<system.web>
  <profile enabled="true">
    <properties>
      <add name="FirstName" type="System.String"/>
      <add name="LastName" type="System.String"/>
      <add name="Address" type="System.String"/>
      <add name="City" type="System.String"/>
      <add name="State" type="System.String"/>
      <add name="Zip" type="System.String"/>
      <add name="Email" type="System.String"/>
      <add name="Birthday" type="System.String"/>
      <add name="ProfilePicture" type="System.String"/>
      <add name="ProfilePictureThumb" type="System.String"/>
    </properties>
  </profile>
  <roleManager enabled="true"></roleManager>
</system.web>

and when I try to add the

ProfileCommon profile = HttpContext.Current.Profile as ProfileCommon;

statement into a .cs file I get the

The type or namespace name 'ProfileCommon' could not be found (are you missing a using directiv or assembly reference)

I am using the imports

using System;
using System.Web;
using System.Web.Security;
using System.Web.Profile;
  • 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-03T08:47:43+00:00Added an answer on June 3, 2026 at 8:47 am

    This blog post will help you : WebProfile Builder and WAP for VS2010

    ProfileCommon is dynamic class. you can create instant of that using below line of code.

    var profile = HttpContext.Current.Profile;
    

    enter image description here

    If you need to set property values:

    profile.SetPropertyValue("FirstName","testName");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that I should put all the html elements in body tag, but
I know that this has already been asked here but the answer (using a
I know that the entity framework does not currently support geo types but there
I know that != is not equal, but what does it mean when you
I know that |DataDirectory| will resolve to App_Data in an ASP.NET application but is
I know that IList is the interface and List is the concrete type but
I know that we shouldn't being using the registry to store Application Data anymore,
I know that Phonegap has an event for back button, but it's only available
I know that I can use ubuntu server to host a website, but what
I know that we can set it through manifest file using android:icon attribute.But how

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.