0

I have added a ViewComponent <vc:my-profile-menu /> in the _Layout file. On the development computer, it displays correctly, but when I deploy it to the server, it does not render. In the source view, I can see the code as plain text. I use ViewComponents in other areas of the site and those work fine. I also tried to render using @await Component.InvokeAsync("MyProfileMenu"), but then the page crashed on the server. It rendered fine on the local computer. Any suggestions would be appreciated. The application is in dotnet 6.

1 Answer 1

-1

It seems like the problem has resolved itself as it is no longer an issue without any changes in the code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.