You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Visual Studio 2017创建ASP.NET MVC项目启动超时求助

Fix for "Unable to start program 'http://localhost:xxxxx/' Operation timed out" in VS2017 ASP.NET MVC

Hey there, sorry to hear you're stuck with this timeout issue right after creating a fresh ASP.NET MVC project in Visual Studio 2017—no one wants to hit roadblocks before even writing a line of code. Let's go through some tried-and-true fixes that usually get things back on track:

  • Check for port conflicts
    The port xxxxx your project is trying to use might be occupied by another app. Open Command Prompt as administrator and run this command to find the process hogging the port:

    netstat -ano | findstr :xxxxx
    

    Note down the PID number from the result, open Task Manager, head to the Details tab, locate the process with that PID, end it, then restart VS and try running your project again.

  • Switch to a different port
    If ending the conflicting process isn't feasible, just change the project's debug port:

    1. Right-click your project in Solution Explorer → select Properties
    2. Navigate to the Web tab
    3. Under Server, tweak the port number in the Project URL field (e.g., change http://localhost:xxxxx/ to http://localhost:5000/)
    4. Save changes and launch the project again
  • Reset IIS Express
    Corrupted IIS Express configuration or cache can often cause this issue. Here's how to reset it:

    1. Open Command Prompt and run:
      iisexpress /stop
      
    2. Go to %USERPROFILE%\Documents\IISExpress and delete all contents inside this folder
    3. Restart Visual Studio and try launching your project once more
  • Disable SSL temporarily
    Auto-enabled SSL can trigger timeout issues if there's a problem with the local certificate. Try turning it off:

    1. Go to your project's Properties → Web tab
    2. Uncheck the Enable SSL checkbox
    3. Update the Project URL to use http instead of https if needed, save changes, and run the project
  • Repair Visual Studio 2017
    If none of the above works, there might be a corrupted component in your VS installation:

    1. Open Control Panel → Programs and Features
    2. Find Microsoft Visual Studio 2017 in the list, right-click it → select Change
    3. Choose the Repair option and wait for the process to finish
    4. Restart your computer and try creating/running the project again
  • Check firewall/antivirus settings
    Your firewall or antivirus software might be blocking Visual Studio from establishing a connection. Try temporarily disabling them (just for testing) or add Visual Studio to their trusted applications list, then see if the project runs successfully.

内容的提问来源于stack exchange,提问作者user9335731

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 12:11:14