Aakash N

Aakash N

  • NA
  • 166
  • 19.6k

404 error - interacting controllers in RCL

Dec 5 2018 11:10 AM

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
  1. app.UseMvc(routes =>    
  2.      {    
  3.       routes.MapRoute("areas", "{area}/{controller=Home}/{action=Index}/{id?}");       
  4.       routes.MapRoute(name: "default",    
  5.               template: "{controller=Home}/{action=Index}/{id?}");     
  6.      });    
 
On local development, it is working fine. I can load all controllers with no issue


Answers (2)