一.配置方法:
routes.MapRoute(
name: "User_Default1",
url: "user/{action}.html",
defaults: new { controller = "PKGUser", action = "Index" }
);
二.解决办法如下:
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true" />
在Web.config文件中加入红色部分就ok了