Open Closed

Can't find Partial when deployed to Azure AppService #5884


User avatar
0
jasenfici@gmail.com created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: System.InvalidOperationException: 'The partial view '~/Themes/Lepton/Components/MainMenu/_WebinarCafeMenuItem.cshtml' was not found. The following locations were searched:~/Themes/Lepton/Components/MainMenu/_WebinarCafeMenuItem.cshtml'
  • Steps to reproduce the issue:"

Hi, we have customized certain parts of the Lepton Lite theme and everything works great locally, however, when we deploy to Azure we are getting an exception that the partial cannot be found. I am sure the partial file is being included in the deployment and have investigated the deployed files to be sure. I know the deployment works when not hitting a page that has overridden theme files, as those pages load great. However, I have spent hours trying to determine why a file that clearly exists in the proper path is not being picked up. I have a feeling it's something to do with compiled resources in the default theme being overriden by a phsyical file but have no clue on how to debug this.

I have attached a screenshot showing the exception along with the dir of the actual file out in the AppService environment. Any thoughts would be greatly appreciated.


1 Answer(s)
  • User Avatar
    0
    jasenfici@gmail.com created

    Just hacking around, I deleted all the custom theme folders, then re-added them and they started being recognized. This will have to go down as a mystery :-)

    Ignore this message please

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11