skip to Main Content

If you are not able to run your application due to the following error:

Failed to register application "/". Error description: The process cannot access the file because it is being used by another process. (0x80070020)

2

Answers


  1. Chosen as BEST ANSWER

    Open a command prompt and run the following command:

    netsh interface ipv4 show excludedportrange protocol=tcp

    Here you will see the list of used ports in a range e.g. from (start port) 10000 to (end port) 11000 etc. etc.

    What you want to do is to go to the settings of your project and set a port that is not falling under any range of the listed ones in the CMD after running netsh interface command.


  2. The error occurred because the port on which the application wants to run is currently being used by another application.
    Right click on the sln file and open the file in notepad and then edit vmport and then reload the project.

    below link can help you :

    https://www.c-sharpcorner.com/blogs/the-process-cannot-access-the-file-because-it-is-being-used-by-another#:~:text=The%20main%20cause%20for%20this,being%20used%20by%20another%20process.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search