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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:13:45+00:00 2026-05-25T13:13:45+00:00

I have just added a new Admin area to my project as its started

  • 0

I have just added a new Admin area to my project as its started to get quite large and I want to keep it structured.

I have a _ViewStart.cshtml view which sets a shared layout page to include a menu and a partial with some user information. As this wasn’t being added on my area page, I’ve added the _ViewStart file to my area too.

This file sets the layout to “~/Views/Shared/_Layout.cshtml”, which is outside my Admin area.
However, the _Layout file includes a RenderAction() method which calls a Child action method on the controller for rendering. The problem is that the area doesn’t seem to have visibility of this controller and so throws the following exception:

The controller for path '/Admin/LeadOrigin' was not found or does not implement IController.

The point where it occurred though is here:

Line 70:         <div id="logindisplay">
Line 71:             @{
Line 72:                 Html.RenderAction("UserInfo", "Account");              
Line 73:             }
Line 74:         </div>

The RenderAction() above works normally as the Account controller is within the scope of the view, whereas in the Admin area, it seems it has no scope of this controller.

Any ideas how to get round this problem?

  • 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-25T13:13:46+00:00Added an answer on May 25, 2026 at 1:13 pm

    You can specify the area as part of the RouteValueDictionary (or just object of route values) which RenderAction takes as a third parameter in your case:

    Html.RenderAction("UserInfo", "Account", new { area = "" });  
    

    This is assuming the Account controller is in the root area.

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

Sidebar

Related Questions

I am just getting started with Silverlight and have recently added a Silverlight project
I'm new to Apex and have just downloaded Eclipse to get to work Eclipse
i have just started using servlet. basically i am new to web projects. I
I have just added a new panel to StatusBar1 and it is called 5
I just added a new MFC class in a VS2008 project and it isn't
I have just added a new database and imported alot of backed up data
I have just added a Core Plot view to my application based on a
I have just added a Telerik menu to my MVC application. I also have
What's wrong with sqlite 3 ? I have just added libsqlite3 file to my
I have added some code which compiles cleanly and have just received this Windows

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.