By Daniel Du
When I work on my Windows Azure Blob storage sample, I found that my Windows Azure Storage Emulator just does not start up. I try to start it and get an error message as below:
"Process cannot access the file because it is being used by another process"
After some searching, it seems that it is due to port confliction, the 1000 port which is used by Azure Blog Storage is occupied by other applications. NETSTAT command can help to find out this process, run following command:
C:\Users\duda>netstat -p tcp -ano | findstr :10000
TCP 127.0.0.1:10000 0.0.0.0:0 LISTENING 6256
Judging from the result, process with ID 6256 is listening to port 1000. Using follow command, I can find the process name from process id:
C:\Users\duda>tasklist /fi "pid eq 6256"
Image Name PID Session Name Session# Mem Usage
========================= ======== ================ =========== ============
emagent.exe 6256 Services 0 40,956 K
The process name is "emagent.exe", now I can go to Windows Task Manager and close this process. My Azure blog storage emulator works again. :)