Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
JoJk0 opened this issue Feb 12, 2024 · 6 comments

Comments

@JoJk0
Copy link

JoJk0 commented Feb 12, 2024

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

  • Long paths enabled via LongPathsEnabled setting to 1 in regedit
  • Completed prerequisites for NodeJs.Extensions

Steps:

  • Cloned https://github.com/Lombiq/Open-Source-Orchard-Core-Extensions with git clone
  • Recursive submodules with git submodule update --init --recursive inside the project directory
  • Opened solution project in VS 2022 from the root project directory (Lombiq.OSOCE.sln)
  • pressed CTRL + F5 to build solution, node and pnpm seem to be ok
  • once building finished, https://localhost:5001/ opened with the setup page
  • chose Training Demo as a setup recipe and Sqlite as a database
  • Clicked Finish setup
  • Received Internal Server Error (it persists even after quitting server and re-running it with IIS express button after initial setup)
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

@github-actions github-actions bot changed the title InvalidOperationException: The partial view '/Areas/Lombiq.TrainingDemo/Views/InjectedShape.cshtml' was not found InvalidOperationException: The partial view '/Areas/Lombiq.TrainingDemo/Views/InjectedShape.cshtml' was not found (OSOE-806) Feb 12, 2024
@Piedone
Copy link
Member

Piedone commented Feb 12, 2024

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
Copy link
Author

JoJk0 commented Feb 12, 2024

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
Copy link
Author

JoJk0 commented Feb 12, 2024

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
Copy link
Author

JoJk0 commented Feb 13, 2024

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 🙂

@JoJk0 JoJk0 closed this as completed Feb 13, 2024
@Piedone
Copy link
Member

Piedone commented Feb 13, 2024

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

@Piedone
Copy link
Member

Piedone commented Feb 27, 2024

You may be interested in how I made this module easier to set up, without any dependencies apart from .NET: #131.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants