Razor Partial View not rendering on Azure App Service despite successful deployment #61512
Unanswered
CodeWizardGenius
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I successfully deployed my ASP.NET Core MVC project to Azure App Service. The MongoDB connection is working fine — I can confirm the connection string is valid and data is being retrieved properly (verified through logs).
However, I'm facing an issue where the partial view rendered via @Html.Partial("Deneyim", Model.DeneyimListesi) is not displaying on the frontend. The surrounding section is present in the DOM, but the content of the partial is completely empty.
What I’ve verified so far:
Views/Default/Deneyim.cshtml exists and works fine in my local environment
MongoDB data is loading properly and the list is not empty
The partial view includes @model List
Publishing was done through Rider
No runtime exceptions or view compilation errors are shown
The issue is only present on Azure, not locally
My questions:
How can I ensure .cshtml files are included during the publish to Azure App Service?
Are there any project or publish profile settings I need to be aware of to guarantee Razor views are deployed correctly?
Has anyone faced similar issues where partial views are skipped silently in production?
You can preview the issue at:
https://app-250405233639.azurewebsites.net/Default#about
Thanks in advance for any help or direction!
Beta Was this translation helpful? Give feedback.
All reactions