Why is the ASP.NET/Visual Studio Web Development Server so slow?

后端 未结 7 1589
北荒
北荒 2020-12-24 12:06

\"Compiling(xkcd)

I know that compiling nowadays is much faster than it was before. Yet, for me, it se

7条回答
  •  Happy的楠姐
    2020-12-24 12:37

    There's no reason why it should take 3 minutes to start debugging something unless you've got something really strange going on.

    I suggest you launch the debugger, try to navigate to a page and then just break into the debugger while it's loading. See where you're losing time. Maybe you're making some call on startup which is failing, but taking minutes to do so.

    I've never experienced anything like what you're describing, which suggests it's either in your environment or in your code - and if it's a generally fast computer, that suggests it's somewhere in the code.

    If you create a brand new MVC project and debug into that, does that take a long time?

    You might also want to run Wireshark when you start debugging - see whether something in your app is trying to fetch a network resource of some description without you realising it.

提交回复
热议问题