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

  • Home
  • SEARCH
  • 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 601555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:43:41+00:00 2026-05-13T16:43:41+00:00

We just recently upgraded our application and noticed that we’re getting runtime errors on

  • 0

We just recently upgraded our application and noticed that we’re getting runtime errors on all of our Html.ValidationMessages and Html.ValidationMessageFor. There error is: The given key was not present in the dictionary. We’ve been passing the modelName/expression and it was working fine until the upgrade. I also checked out the breaking changes as described in the readme but didn’t notice anything that relates to it.

  • 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-13T16:43:41+00:00Added an answer on May 13, 2026 at 4:43 pm

    After having debugged the ASP.NET MVC source I found the cause for this issue.

    You have to have <%= Html.EnableClientSideValidation %> before the <% Html.BeginForm %> ,
    The reason for this is that when client side validation is enabled the Html form helper will generate an Id (formContext.FormId) that is used in the validation helper. This means that if you are to use the validation helper you must use the built in form helpers.

    So to solve the issue just move the <%= Html.EnableClientSideValidation %> to above the first form and be sure to use the Html.BeginForm helper method.

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

Sidebar

Related Questions

I've just recently upgraded to SQL Server 2008 from 2005 and when I attempt
I just recently noticed Dictionary.TryGetValue(TKey key, out TValue value) and was curious as to
I just recently changed out all my hard drives and in the process of
I only just recently discovered that Visual C++ 2008 (and perhaps earlier versions as
I've recently decided that I just have to finally learn C/C++, and there is
I've recently began using dTrace and have noticed just how awesome it is. Its
Just recently got into experimenting with NLog, and it occurs to me that I
I just recently got my first mac. I do lots of programming on windows
I just recently installed the MVC beta. However, I assumed because the versioning numbers
I just recently installed Winamp Song Requester wich is a Winamp web song requester

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.