I created simple partial view in shared folder. But when i render it in index.cshtml by using partial tag it gives an error.
Error: InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'CoreWeb.Pages.IndexModel', but this ViewDataDictionary instance requires a model item of type 'CoreWeb.Pages.Shared._PartialTestModel'.
I used <partial name="_PartialTest"> tag for rendering
Partial view location
partial view content
Rendering in index.cshtml
Startup.cs file changes related to PartialView
Error




