i am working in visual studio in .net i also facing this issue but it resolved now.
the issue is when i run my project is already have a instance create in task manager so i have take below step to resolve the issue
- close visual studio
- open task manage -> close the visual studio service (if any)
- Run the following command in Command Prompt or PowerShell to find and terminate the process: tasklist | findstr Api_name
- open visual studio
- clean solution
- Rebuild S
- Rebuild Solution
olution
Done.