Lombiq / Orchard-Training-Demo-Module

Demo Orchard Core CMS and Orchard 1.x module for for you to become an Orchard developer. This module completes the training materials under https://orcharddojo.net.
https://orcharddojo.net
BSD 3-Clause "New" or "Revised" License
161 stars 58 forks source link

InvalidOperationException: The partial view '/Areas/Lombiq.TrainingDemo/Views/InjectedShape.cshtml' was not found (OSOE-806) #133

Closed JoJk0 closed 8 months ago

JoJk0 commented 8 months ago

Hey, I'm trying to setup and run the project, particularly to see how Orchard-Vue.js works (via its samples).

Steps:

InvalidOperationException: The partial view '/Areas/Lombiq.TrainingDemo/Views/InjectedShape.cshtml' was not found. The following locations were searched:
/Areas/Lombiq.TrainingDemo/Views/InjectedShape.cshtml

image

Is there anything I've missed and needs to be done?

I have Node.JS 20.10.0 installed via NVM and running it on Windows 11

Jira issue

Piedone commented 8 months ago

Hmm, interesting, because the file is there and for me it also works, also with a fresh clone, doing the same steps, and the "I'm injected!" message appears as it should, too:

image

Can you confirm this file exists for you?

image

Did you change anything in the code?

JoJk0 commented 8 months ago

I've checked and it exists, I didn't touch the code, I started from scratch, fresh cloning and it's still the same. I've also tried to run setup of the project via headless recipe and it loaded but as soon as I activate training demo module from config panel it throws the same exception

JoJk0 commented 8 months ago

I've also tried to do same setup with headless starting recipe, run VueJs.Samples recipe from the recipes panel and go to Content Items and click New business card button (or Edit button to existing business card). After that, similar exception occurs and the file actually exists:

image

JoJk0 commented 8 months ago

Surprisingly it works via running dotnet run CLI command on Lombiq.OSOCE.Web and also after reinstalling VS so it appears like it was an issue with VS, thanks for your help anyway 🙂

Piedone commented 8 months ago

Great then! BTW I tried from VS, so the the CLI shouldn't be necessary.

Piedone commented 8 months ago

You may be interested in how I made this module easier to set up, without any dependencies apart from .NET: https://github.com/Lombiq/Orchard-Training-Demo-Module/issues/131.