today
打开Website时,
按F5调试和debug **.aspx文件时都提示下面的错误:
ASP.NET Development Server failed to start listening on port 34767.
Error message: An attempt was made to access a socket in a way forbidden by its access permissions
解决方案如下:
1. 选中Project專案, 按F4;
2. 属性中把Use dynamic ports(使用动态端口)改为false;
3. 给Port number指定一个新的;
4. 按F5 debug 即可解決問題;
good method!