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

Shipper Action Incorrect #18

Open
DocVD opened this issue Jun 15, 2024 · 2 comments
Open

Shipper Action Incorrect #18

DocVD opened this issue Jun 15, 2024 · 2 comments

Comments

@DocVD
Copy link

DocVD commented Jun 15, 2024

On page 649, step-16, another anchor tag is used to pass dictionary to current page:
Shipper

However, this produces the error:
An unhandled exception occurred while processing the request.
InvalidOperationException: The view 'Shipper' was not found. The following locations were searched:
/Views/Home/Shipper.en-US.cshtml
/Views/Home/Shipper.en.cshtml
/Views/Home/Shipper.cshtml
...

So I modified the asp-action="asp-action="Index" instead and I get no issues. Is that what is expected?

@markjprice
Copy link
Owner

In Step 13, you should have created a Razor view named Shipper.cshtml in the Views/Home folder:
image
As you can see from your error message, ASP.NET Core cannot find that file. Check that you have that file and that it is NOT a Razor Page (it must NOT have a @page directive at the top.)

@markjprice
Copy link
Owner

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