I use only RazorViewEngine in one of my ASP.NET MVC 3 applications, and I cleared the web form viewer using the following code inside the Application_Start method of my Global.asax.cs file
ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(new RazorViewEngine());
I decided to see something solid to be satisfied with this two-line code, and I am trying to make a partial representation that does not exist, and I got this result:
Partial view '_ResortMapPartialView' not found or missing engine supports found locations. The following places were what you were looking for: ~ / Regions / Accommodation / Views / resort / _ResortMapPartialView.cshtml ~ / Regions / Accommodation / Views / resort / _ResortMapPartialView.vbhtml ~ / Regions / Accommodation / Views / Shared / _ResortMapPartialView.cshtml ~ / Regions / Accommodation /Views/Shared/_ResortMapPartialView.vbhtml ~ / Views / resort / _ResortMapPartialView.cshtml ~ / Views / resort / _ResortMapPartialView.vbhtml ~ / Views / Shared / _ResortMapPartialView.cshtml ~ / Views / Shappialial.cshtml ~ / Views / SharedPartialView.cshtml ~ / Views / Shared
It looks a little better. Now he is looking for fewer items than before. But still, files with the .vbhtml extensions make me disagree.
The question is: how can we get rid of them?
source share