"Use port 80 and 443 for additional incoming connections." - The Skype setting that every developer should disable. Solution to "The process cannot access the file because it is being used by another process" when running a Service Fabric hosted WebApp.

I just flattened my machine and ran into this issue when running a Service Fabric hosted WebAPI project.

This line of code:

1
this.serverHandle = WebApp.Start(this.listeningAddress, appBuilder => this.startup.Configuration(appBuilder, this.config));

Was throwing this exception:

1
Message=The process cannot access the file because it is being used by another process

Luckily, I remembered that I ran into this same issue before and didn’t disable this when I rebuilt my machine. By default, Skype uses port 80 and 443. You, as a developer, should disable that. Uncheck this box under Tools—> Options –> Advanced –> Connection: “Use port 80 and 443 for additional incoming connections”.

[2016-04-25

Jon

Share