Friday, March 8, 2013

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

There'll be time when you need to enabling SSL on IIS 7.0 Using Self-Signed Certificates.
RobBagbyscottgu has 2 great tutorials on that topic. Looks like IIS7 simplify a lots.
I go to IIS and set the binding using the default port 443.


But life is not always a bed of roses.Then I hit this error message:
"There was an error while performing this operation."
"The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)"


I was wonder what caused it to happen  After confirmed with network guy it's not their issue, i have to check what could be the possible reason for that.
From Microsoft Support, and also someone from stack-overflow pointed out this could be port is being used by other application.

Then I work it out from there:
1) run the "netstat" command from command prompt, to display active TCP connections, ports on which the computer is listening


2) then run the "Tasks Manager". The PID column is not displyed by default. I have to go to "View">"Select Column" and check it.


3) Compare the PID.

4) there's another process, called "nhttp.exe" is using that port. It's from Lotus Domino. :(


5) no choice but have to use another port 444. Back to the IIS site binding, and edit it.

6) of course, have to allow the firewall to let that port through by adding a new inbound rule.


7) Finally, I can browse my site.



3 comments:

Unknown said...

If you have access issues on your local file, you can try and use the Long Path Tool. It fixes a lot of access denied problems, filename too long, file path too long or even file not found issues.

Dan peterson said...

I am suggesting "Long Path Tool" program that solves file name too long issues with simplicity.

wallikerbacik said...

babylisspro nano titanium (NTSC) - Ti-TithroesPro
T-Base titanium max is made with a premium titanium camping cookware platinum alloy. titanium trim hair cutter reviews The nanoparticles are then immersed under the titanium wood stoves lid of a specially crafted aluminum shell. iron titanium token