Uchenna

InvalidOperationException: The partial view '/Shared/_LargeChallengeCard' was not found. The following locations were searched: /Shared/_LargeChallengeCard

net Icon

System.InvalidOperationException

The partial view '/Shared/_LargeChallengeCard' was not found. The following locations were searched

An unhandled exception occurred on line 4
1
@page
2
@model IndexModel
3
@{
4
    ViewData["Title"] = "Home page";
5
}

Solution

I was trying to include a partial view file that was in the "Shared" folder by doing /Shared/Components/_LargeChallengeCard

but instead I could just do

<partial name="Components/_LargeChallengeCard" />

which worked fine.            
Jul 11, 2021 Anyone

0 replies


Install the browser extension

Found this solution helpful? Try our extension for quick solutions to your .NET errors.

Chrome logo Add to Chrome - It's free