Adding IIS UrlRewrite seems to break debugging on local IIS server

前端 未结 6 648
耶瑟儿~
耶瑟儿~ 2021-02-04 11:25

This issue is driving me insane: I was working on a recently created project and suddenly I was unable to debug that specific project.

I\'m using a local IIS 7.5 with t

6条回答
  •  隐瞒了意图╮
    2021-02-04 11:58

    I just discovered that the if the project URL you are using (right click your project, go to Properties, click on the Web tab on the left) happens to trigger your rewrite rule, then debugging using the play button won't work. The "fix" is to simply set your project URL to one that won't be rewritten.

    For example, I am using URL rewrite to make sure that HTTP requests get redirected to HTTPS. As long as my project URL begins with https:// then I have no issues debugging (apart from the fact that I have to install an SSL cert on my development machine, but that's easy to work around).

提交回复
热议问题