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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:24:37+00:00 2026-06-07T04:24:37+00:00

enter code hereI have read a few other posts like mine, but still no

  • 0

enter code hereI have read a few other posts like mine, but still no answers that are available.

I have an editorFor my profile information, and it gets the data fine for the selected user, but once I try and save it, I get the following error.

The settings property ‘FirstName’ was not found.

The thing is for the POST, operation Im not even doing anything yet. I think its trying to load, or get a profile object to fill the model once posted. Theres nothing in the callstack from what I can see to find where this is happening.

Web.Config:

 <profile inherits="MyWeb.BusinessLayer.Models.Account.Profile" enabled="true" defaultProvider="AspNetSqlProfileProvider">
  <providers>
    <clear/>
    <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="My Website"/>
  </providers>
</profile>

Profile Class

public class Profile : ProfileBase
{
    [Display(Name = "First Name")]
    [Required(ErrorMessageResourceName = "err_req_field", ErrorMessageResourceType = typeof(Resources))]
    [StringLength(50, MinimumLength = 3, ErrorMessageResourceName = "err_len_field", ErrorMessageResourceType = typeof(Resources))]
    public virtual string FirstName
    {
        get
        {
            return (this.GetPropertyValue("FirstName").ToString());
        }
        set
        {
            this.SetPropertyValue("FirstName", value);
        }
    } ... abreviated

Controller Actions

    public ViewResult EditProfile(Guid id)
    {
        var user = _userService.Get(id);

        Profile _profile = Profile.GetProfile(user.UserName);

        return View(_profile);
    }

    [AcceptVerbs(HttpVerbs.Post)]
    public RedirectToRouteResult EditProfile(Profile profile)
    {
        return RedirectToAction("Index" , "UserAdministration" );
    }

The Display Editor works fine, I get the data, its just when I try the Post, that I get this. Any other ideas? My only other idea, might be to do an Ajax Post, with the paramerts split out rather than the Profile model, then just read and set./.. Thoughts?

  • 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-07T04:24:40+00:00Added an answer on June 7, 2026 at 4:24 am

    After you post your form with Profile class the model binder tries to bind the model so it wants all the properties (‘FirstName’ among others).

    The problem is that the model from the form is not complete (and it can’t be) so the Profile is acting as not authorized and not known.

    You can see it when you set breakpoint before the getter for FirstName property. After the breakpoint hits, look to Locals window and locate ‘this’. Expand its ‘base’ property and you will see that the IsAnonymous property is set to true.

    The binder cannot recognize the profile after it comes from POST form. The solution is to code it like this:

    [AcceptVerbs(HttpVerbs.Post)]
    public RedirectToRouteResult EditProfile(ProfileModel profileModel)
    {
        // get the current user profile
        Profile profile = Profile.GetUserProfile();
        profile.FirstName = profileModel.FirstName;
    
        // save the profile
        profile.save();
    
        return RedirectToAction("Index" , "UserAdministration" );
    }
    

    So you create user profile based on current logged user and then update some properties.

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

Sidebar

Related Questions

I have read a few similar questions and answers, but none completely address my
enter code here I have a ListView that have a different Layout XML for
enter code here Hi All, I have a simple windows service application that connects
I have read lots of questions and answers here but I haven't found a
enter code here I have a table on SQL server 2005 with bigint primary
I have <.ImageView> enter code here s(icons) in my android layout xml file, which
i have two dropdown list. first drop down:1 enter code here <form:select path=custName id=custName>
enter code here Want to remove items from a Main list , but give
I check like this: enter code here var point = new g.LatLng(parseFloat(lat),parseFloat(lng)); var bounds
In source code I have to read (not from me) I found a regex

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.