Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS process cannot access file in use

Tags:

We created an SSL certificate for our server and when we want to start IIS we get this error:

The process cannot access the file because it is being used by another process.

Port 443 seems to be in use. How can I solve this? Or How can I learn why port 443 in being used?

like image 604
Elham abbasi Avatar asked Jul 28 '11 20:07

Elham abbasi


People also ask

How do you fix the process Cannot access the file?

Process cannot access file because it is being used by another process error message. To resolve this error: Press Ctrl + Alt + Delete, then click Task Manager. Ensure you're on the Processes tab.

How do you solve the process Cannot access the file because it is being used by another process 0x80070020?

Windows Update Code 0x80070020 The existing process cannot access the file because it is being used by another process. To fix this error, you will need to use the MSCONFIG tool to get the PC into a clean boot state and then try to update it again.

How do I enable IIS permissions?

In IIS Manager, in the Connections pane, select the site or application for which you want to configure permissions. On the home page for the site or application, double-click IIS Manager Permissions. On the IIS Manager Permissions page, in the Actions pane, click Allow User.


2 Answers

Marc B's comment is deserving of an actual answer, so I will paste it here:

Use netstat -b -a in an elevated privilege shell. It'll show all active ports and the processes attached to them. You can add -o if the process holding on to your port is svc.exe or another multi-instance executable (thanks to Mike K for the comment).

I've seen this happen on my development box where Skype actually takes over port 80 and/or 443. To turn off and disable Skype usage of and listening on port 80 and port 443,

  1. Open the Skype window
  2. Click "Tools"
  3. Click "Options"
  4. Click "Advanced"
  5. Click "Connection"
  6. Uncheck the checkbox for "Use port 80 and 443 as an alternatives for incoming connections" option.
  7. Click the save button
  8. Restart Skype
like image 91
4 revs, 2 users 62% Avatar answered Sep 26 '22 01:09

4 revs, 2 users 62%


I just closed the skype, resolved the issue.

like image 27
felix Antony Avatar answered Sep 22 '22 01:09

felix Antony