Exception: Shape type 'Layout' not found #10319
Replies: 4 comments 31 replies
-
You need to have your themes added in features e.g. |
Beta Was this translation helpful? Give feedback.
-
I'm facing same issue, but when I reset the theme, then enable it and make it default everything works fine!! Any idea |
Beta Was this translation helpful? Give feedback.
-
Any new answer for this issue, I'm having the same issue when the file is called Layout.cshtml it works but when I add @Renderbody and move it to the Shared folder it gives me 'Layout' not found error @MikeAlhayek |
Beta Was this translation helpful? Give feedback.
-
Just in case anybody lands here from Google and this proves useful - I triggered this error by accidentally referencing my theme by two separate names in a startup recipe. The theme and a bunch of styled components are provided by a single module, which can be automatically enabled by choosing my recipe when creating a site. In the steps config, for the features list (the Guidance above helped me troubleshoot, I couldn't even query the DB when spinning up a site with a SQLite Instance because it didn't even get as far as creating the DB! |
Beta Was this translation helpful? Give feedback.
-
I am trying to use OrchardCore withan ASP.NET Core project. I want to use the Theming, and Tenants features. To enabled all that I need I used configured my host app like this
I then created a Theme "almost identical to TheTheme in OC." I removed the Menu views since I am not using the CMS. I then injected the
ISiteThemeService
service into one of my controller, and I can verify that thethe current theme name is the name of my theme using theGetCurrentThemeNameAsync()
method.I removed the Views folder from my host project, but when I run the app I get the following error
Here is the structure of the theme, as you can see the
Layout.cshtml
exists.How can I correct this error?
Beta Was this translation helpful? Give feedback.
All reactions