404 errors on IIS 10 servers when interacting with Razor Class Library controllers from home Controllers asp.net core
Does anyone encounter this kind of problem? Is it something to do with the IIS or startup.cs. I am using IIS 10 also using VS2017 and ASP.NET Core. When I navigate between _layout.cshtml and class library view(.cshtml) files I see this error.
Code for routing on stratup.cs
- app.UseMvc(routes =>
- {
- routes.MapRoute("areas", "{area}/{controller=Home}/{action=Index}/{id?}");
- routes.MapRoute(name: "default",
- template: "{controller=Home}/{action=Index}/{id?}");
- });
On local development, it is working fine. I can load all controllers with no issue

Aakash NPosted Dec 7, 2018, 7:46 AM
Thanks for your response, but in my case the iis configured in dev server and iis in test server are same still I have 404 issues on dev not test. Is there anything that I need to work on web.config file in order to resolve 404 error?
I'll be glad if you can help me with this!!
Jignesh KumarPosted Dec 5, 2018, 10:16 PM