因此,最终我对项目进行了以下更改,从而解决了我的问题:
将FriednlyUrls添加到项目中。
删除 RegisterRoutes 方法中设置 App_Start / RouteConfig.cs中的
settings.AutoRedirectMode
属性的 行
(请注意,将其设置为RedirectMode.Permanent或RedirectMode.Off不适用于我)
在 system.web 部分下的web.config中添加 授权 __
<authorization><allow users="*" />



