IIS express doesn't show index.cshtml in one folder but in other it shows

前端 未结 2 847
悲&欢浪女
悲&欢浪女 2020-12-22 06:34

I\'m developing an ASP.NET MVC 5 application with C# and .Net Framework 4.7.

I\'ve just created a new ASP.NET MVC 5 controller:

using System;
using S         


        
相关标签:
2条回答
  • 2020-12-22 06:59

    But I have added a breakpoint at ReportsController.Index method and it doesn't stop.

    Since it's deployed in IIS, just setting an breakpoint won't enough, you will have to attach the w3wp worker process to the debugger in-order to debug.

    How to attach an external process to VS debugger?

    See MSDN for more information.

    0 讨论(0)
  • 2020-12-22 07:07

    The most likely cause for your HTTP Error 403.14 - Forbidden error is that you also have a folder in your app named Reports so its attempting to navigate to your folder, rather than your controller method.

    If so rename that folder to anything other than the name of one of your controllers.

    0 讨论(0)
提交回复
热议问题