简体   繁体   English

IIS Express和VS 2015绕过我的索引

[英]IIS Express and VS 2015 bypassing my index

I do not understand why this is but when I try to debug with VS2015 sometimes it will go to my index action (where it is determined if the user is authorized or not) and then supposed to go to a Request action. 我不明白为什么会这样,但是当我尝试使用VS2015进行调试时,有时它将转到我的索引动作(确定用户是否被授权),然后应该转到请求动作。 Most often it tries to go directly to the Request action without ever hitting the Index. 大多数情况下,它会尝试直接转到“请求”操作,而无需点击“索引”。 Why does it do this? 为什么这样做呢? It is frustrating! 真令人沮丧!

Check your project settings. 检查您的项目设置。 If Current Page is set it might execute the Action that your in. 如果设置了Current Page ,它可能会执行您所在的操作。

VS项目设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM