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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:41:34+00:00 2026-05-24T03:41:34+00:00

A simple controller action that is posted to which takes a model used by

  • 0

A simple controller action that is posted to which takes a model used by the view’s form isn’t being bound to the form fields when running under Mono 2.10.1. Under MS.NET the same code executes as expected with the model populated with the corresponding form values.

The controller action is defined as:

[HttpPost]
public ActionResult Login(LoginModel login, string returnUrl)
{

The first parameter login is null when the form is submitted on Mono, and fully populated with the login form fields under MS.NET.

The form fields are accessible via the Request.Form collection (ie Request.Form["UserName"]) under Mono, so it seems to just be the binding that isn’t working.

This used to be an MVC2 app – anyone experienced something similar?

  • 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-05-24T03:41:35+00:00Added an answer on May 24, 2026 at 3:41 am

    I tracked this down to a custom data annotations model validation provider that we register to handle our own way of localizing error messages such as Required and Display Name on model properties.

    Commenting out the following line:

    DataAnnotationsModelValidatorProvider.RegisterAdapter(typeof(LocalizedRequiredAttribute), typeof(RequiredAttributeAdapter));

    From global asax fixes the issue, and the custom model validator still works – looks like it was a hang over from MVC2 days.

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

Sidebar

Related Questions

I have an HttpPost controller action that takes in a simple form DTO object.
I create a simple MVC Controller action, that takes some json data - then
If I have a controller action that returns a simple view return View(Index); Is
A simple question: I have a Model-View-Controller setup, with Models accessing a SQL database.
My application is pretty simple: it starts up with a view controller that holds
I have a simple form in python + pylons that submits to a controller.
I have a controller action that uses a static variable on Global.asax which is
In my Rails application I have a simple controller which also has an action
i wish to have a simple Action in my controller that accepts a few
Below is a very simple controller with a search action that is fired from

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.