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

The Archive Base Latest Questions

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

i’ve hit another brick wall today with jquery generated partialviews when located within areas.

  • 0

i’ve hit another brick wall today with jquery generated partialviews when located within areas. it’s a bit baffling as i have a number of partialviews located under ~/areas/administration/views/shared which all get rendered fine if included inside a normal view. However, if i invoke any of the same partial views via ajax, the controller action runs fine but i get an error. on closer inspection, the error reveals itself to be due to the partialview in question not being found by the view engine (ascx). basically, the console reports that all the ‘normal’ view locations were searched but that the engine was unable to find the view in question.

I’m wondering if it’s a routing issue, tho it seems unlikely. has anyone else experienced an issue with partialviews inside areas when invoked via jquery ajax?? as i say, it’s especially baffling given that the same partial renders just fine if included ‘inline’ in a standard view that ‘lives’ under the same areas folder.

thoughts welcome..

  • 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:34:23+00:00Added an answer on May 24, 2026 at 3:34 am

    Ok,

    I got this fixed after a little brain-storming. Basically, the problem was related to the fact that I was referencing both the ‘root’ of the site and the ‘areas’ namespaces from the core web.config file, ie:

    <pages>
      <namespaces>
        <add namespace="ABC.Web.Site.Controllers" />
        <add namespace="ABC.Web.Site.Models" />
        <add namespace="ABC.Web.Site.Models.ViewModels" />
        <add namespace="ABC.Web.Site.Areas.Administration.Controllers" />
        <add namespace="ABC.Web.Site.Areas.Administration.Models" />
        <add namespace="ABC.Web.Site.Areas.Administration.Models.ViewModels" />
      </namespaces>
    </pages>
    

    moving each set to their own web.config under the views folder sorted the issue: ie.:

    root/views/web.config:

    <pages>
      <namespaces>
        <add namespace="ABC.Web.Site.Controllers" />
        <add namespace="ABC.Web.Site.Models" />
        <add namespace="ABC.Web.Site.Models.ViewModels" />
      </namespaces>
    </pages>
    

    areas/views/web.config:

    <pages>
      <namespaces>
        <add namespace="ABC.Web.Site.Areas.Administration.Controllers" />
        <add namespace="ABC.Web.Site.Areas.Administration.Models" />
        <add namespace="ABC.Web.Site.Areas.Administration.Models.ViewModels" />
      </namespaces>
    </pages>
    

    bliss…

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have a text area in my form which accepts all possible characters from
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;
I have thousands of HTML files to process using Groovy/Java and I need to

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.