IIS: Theprocesscannotaccessthefilebecauseitisbeingu

Source: Internet
Author: User
* ByJiangongSUN * gradient. (ExceptionfromHRESULT: 0x80070020) Apparently, theTCPIPportusedi

/* By Jiangong SUN */I have encountered the problem when I configure a website in IIS 7. the process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) Apparently, the TCP/IP port used I

/* By Jiangong SUN */


I have encountered the problem when I configure a website in IIS 7.

"The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020 )"


Apparently, the TCP/IP port used in my new website is also used in another running services. So what I need to do is find the service (s ).


Because my new site uses port 443, so I need to find which service (s) is using this port.


Firstly,

Run cmd

-& Gt; netstat-aon | find ": 443"

Here it will shows process id of the service (s) you want.


Secondly, you can find the exact service (s) using its PID. 2272 is the PID in my case.

-> Tasklist/fi "PID eq 2272"



Finally, you can kill the service (s ).




Restart your web site, and it will work.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.