Forum Discussion
Hammad_ul_haq
Feb 16, 2024Copper Contributor
.NET 8.0.2 Update Causes ASP.NET Core MVC 'Index View Not Found' Error
Hello everyone, I recently updated to .NET https://github.com/dotnet/core/blob/main/release-notes/8.0/8.0.2/8.0.2.md?WT.mc_id=dotnet-35129-website and encountered an issue with my ASP.NET Core MV...
LeoStefano
May 01, 2024Copper Contributor
Thanks a lot, worked for me.
Add Nuget package
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.4" />
and at program.cs:
builder.Services.AddControllersWithViews().AddRazorRuntimeCompilation();
Add Nuget package
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.4" />
and at program.cs:
builder.Services.AddControllersWithViews().AddRazorRuntimeCompilation();
DavideBellone
Jun 11, 2024Copper Contributor
Have you also replaced
app.MapRazorPages();
with something else?
app.MapRazorPages();
with something else?