简体   繁体   中英

Specified Port is already in use - Visual Studio 2019 when multiple users run the application in RDP server

Debugging Error I have a remote server that has a development environment with visual studio 2019 and TFS. When a user runs the dot.net web application, the url assigned will be localhost:50179. At the same time if another user runs the same application it show the specified port is already in use as the current url is also same (localhost:50179). When I am using Local IIS(setting under Properties>web) there is no permission for the users other than administrator to create virtual directory. When I gave permission for the users, it says unable to start debugging as the server is not found with localhost. So in short, Either I want to generate dynamic ports at run time without conflicting with multiple users or I want to run as Local IIS without error(Error attached as image). Please help. Thank you

I converted Web site to web application and also I gave full permission to users for IIS.

Please check if VS is running as administrator, if not, try running as administrator.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM