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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:57:40+00:00 2026-05-13T07:57:40+00:00

I am trying to debug a problem where HtmlHelper is null in extension methods.

  • 0

I am trying to debug a problem where HtmlHelper is null in extension methods. Oddly the debugger claims it’s fully populated, however I consistently get null exceptions. I’m trying to figure out where HtmlHelper should being instantiated in an attempt to see where my problem may be.

Where should HtmlHelper be Instantiated?

Update: In particular I am trying to implement the extension found here, http://chriscavanagh.wordpress.com/2009/06/11/mvc-authorizedactionlink/, within a masterpage. The error occurs on the MVC template’s HomeController.Index(). There are some ‘plugins’/virtualpathing that may be causing the problem (trying to avoid this can of worms), but, code the code is essentially the same as found here: http://www.codeplex.com/unifico. However, I don’t want to trouble anyone with the details of all of that.

  • 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-13T07:57:41+00:00Added an answer on May 13, 2026 at 7:57 am

    The HtmlHelper is instantiated internally by ASP.NET MVC – it’s not something you should generally need to worry about. Exactly where it gets instantiated depends on where you are using it.

    The main place it gets instantiated is ViewPage’s InitHelpers() method.

    In ViewUserControls it gets created on-demand in the getter of the Html property.

    In ViewMasterPages it just uses the ViewPage’s Html property.

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

Sidebar

Related Questions

I'm trying to debug a problem with a create statement I have however the
Im going crazy trying to debug a problem, where I get an exception ***
I’m trying to debug a memory leak problem. I’m using mtrace() to get a
I'm trying to debug this problem but not sure where exactly i need to
I'm trying to debug a problem in a DLL written in C that keeps
I've been trying to debug this problem for many hours, but to no avail.
I came to a grinding halt in trying to debug a problem I am
I'm trying to debug a strange problem I'm having , and I'm absolutely clueless
I'm trying to debug a cons script, and the problem I'm having is that
I am trying to debug a problem where our program crashes (segfault) in the

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.