Base solution for your next web application
Open Closed

create host area #2305


User avatar
0
carelearning created

Hello,

Using a multi-tenant system, we are trying to create a new area for just the host. We tried to duplicate the _Layout.cshtml file and it throws an error on '@ApplicationPath' saying it does not exist in the current context. Is there some documentation or tutorial on how to create a new area?


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We dont't have a documentation for that but your problem is related to not defining pageBaseType I think. Add a web.config under your new area similar to one in current area (MPA). It must contain a line to define pageBaseType like this.

    ...
    <pages pageBaseType="MyCompanyName.AbpZeroTemplate.Web.Views.AbpZeroTemplateWebViewPageBase">
    ...
    

    You can always ask for help if you face any other problems on doing that.

  • User Avatar
    0
    carelearning created

    That works! Thank you.