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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:13:38+00:00 2026-05-19T05:13:38+00:00

T4MVC is working fine everywhere except in Areas. In Areas, it picks up the

  • 0

T4MVC is working fine everywhere except in Areas.

In Areas, it picks up the Controllers and the Actions, but not the Views.

So, I cannot write, in my controller:

return View(MVC.MyArea.MyController.Views.MyView);

Outside of the Areas, I CAN write:

return View(Views.MyOtherView);

I can also refer to actions in my area controllers:

MVC.MyArea.MyController.MyAction()

In other words:

a. I can get anything I want, if it is not in an Area.

b. I can get at the Actions in my Area controllers.

c. But I CANNOT get my Views in my Area.

What could the problem be?

TIA

EDIT:

The issue is getting T4MVC to rerun (see David Ebbo’s answer and my “answer”).

  • 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-19T05:13:39+00:00Added an answer on May 19, 2026 at 5:13 am

    I believe my issue is being caused by T4MVC not rerunning. As a result (I speculate) the T4MVC does not update to reflect changes in your project. For example, changing the parameters of an Action in a Controller. Or (specific to this question) adding a new View.

    The T4MVC documentation on getting itself to rerun is vague, but points you at a VS add in called Chirpy.

    Chirpy installs, and then you have to go in an configure it. You do this by opening Visual Studio, then going to Tools >> Options and choosing the Chirpy option.

    See the image:

    alt text

    I had to add the template name T4MVC.tt bit to get it to work. Not sure if this is necessary or why. But it all now works fine.

    If there is a better way of doing this, please let me know.

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

Sidebar

Related Questions

T4MVC is cool, but I have a couple of issues integrating it in my
I'm running into an error with T4MVC and named parameters. I have a controller:
I cannot get the current build of T4MVC (2.6.02) to work with an ASP.NET
I'm trying to add the T4MVC templates to my project, but I'm experiencing some
This wasnt happening before but all of a sudden I am not hitting my
I'm using T4MVC in my project . but after deploying to a virtual directory
I have a working Html.RouteLink that I want to convert to T4MVC. The working
My controller is inherited from anothe controller which doesn't have default constructor. T4MVC generates
Actions token was removed from T4MVC. So do I understand right there is no
I want to move my static content to CDN. But I like (love?) T4MVC

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.