Overview
"The process cannot access the file because it is being used by another process" කියන්නේ දැනටමත් යමකට file එක (හෝ port එක) lock කරලා තියෙනවා කියලා. මේ guide එකෙන් common causes සහ fixes — offending process එක close කරන එකේ ඉඳලා port conflicts resolve කරන එක දක්වා — පැහැදිලි කරනවා.
"The process cannot access the file" error fix කරනවා.
Key Takeaways
- File එක හෝ port එක වෙන process එකකින් lock වෙලා.
- Interfering process එක identify කරලා close කරන්න.
- Administrator විදිහට run කරලා security software බලන්න.
- Port conflicts වලට, port එක හෝ IP range එක වෙනස් කරන්න.
Fix 1: Interfering Process එක හොයලා Close කරන්න
1. Task Manager open කරලා file එක පාවිච්චි කරන app එක හොයලා end කරන්න.
2. නැත්නම් Resource Monitor > CPU > Associated Handles පාවිච්චි කරලා file name එක search කරලා locking process එක හොයන්න.
3. ඒ process එක close කරලා ඔබේ operation එක retry කරන්න.
Fix 2: Administrator විදිහට Run කරන්න
1. Program එක right-click කරලා "Run as administrator" තෝරන්න.
2. UAC prompt එක accept කරන්න.
3. Retry කරන්න — elevation එකෙන් බොහෝවිට access conflicts resolve වෙනවා.
Fix 3: Security Software Check කරන්න
1. File එක scan කරන්න පුළුවන් third-party antivirus තාවකාලිකව pause කරන්න.
2. ආපහු ආපහු lock වෙනවා නම් file එක හෝ folder එක Windows Security exclusions වලට add කරන්න.
3. Test කළාට පස්සේ protection ආපහු enable කරන්න.
Fix 4: App එක Firewall එකෙන් Allow කරන්න
1. Windows Defender Firewall > Allow an app through firewall open කරන්න.
2. Correct network profile එකට ඔබේ app එක add හෝ enable කරන්න.
3. Error එකට network ports involved නම් මේක උදව්.
Fix 5: Port Conflicts Resolve කරන්න (netsh / IIS)
1. Port එක අයිති එක හොයන්න: netsh http show urlacl හෝ netstat -ano | findstr :<port>
2. Conflicting service එක stop කරන්න, නැත්නම් ඔබේ app එකේ port එක වෙනස් කරන්න.
3. netsh වලට, වෙන IP range එකක් set කරන්න; IIS වලට, site binding port එක වෙනස් කරන්න.
Fix 6: Torrent Clients
1. Locked files release කරන්න torrent client එක restart කරන්න.
2. NTFS drive එකක local download path එකක් try කරන්න.
3. Clients දෙකක් එකවර එකම file එකට touch කරන එක avoid කරන්න.
Troubleshooting
Problem: කොයි process එකද file එක lock කරන්නේ කියලා හොයාගන්න බෑ.
Solution: Resource Monitor එකේ "Associated Handles" search, හෝ Microsoft's Process Explorer (Find > Handle) පාවිච්චි කරන්න.
Problem: App එක close කළාට පස්සේ error එක ආපහු එනවා.
Solution: Background service එකක් file එක අල්ලගෙන ඉන්න පුළුවන් — Services එකේ ඒක end කරන්න හෝ lock එක clear කරන්න reboot කරන්න.
Problem: Port already in use.
Solution: netstat -ano එකෙන් PID එක identify කරලා, ඒ process එක end කරන්න හෝ port එක වෙනස් කරන්න.
Problem: Antivirus files lock කරගෙන යනවා.
Solution: Protection සම්පූර්ණයෙන් disable කරනවා වෙනුවට targeted exclusion එකක් add කරන්න.
Conclusion
මේ error එක බොහෝවිට වෙන process එකකින් lock එකක් හෝ port conflict එකක්. Task Manager හෝ Resource Monitor එකෙන් culprit එක identify කරලා, ඒක close කරලා (හෝ elevated run කරලා), network errors වලට port/IP conflict එක resolve කරලා — file එක ආපහු accessible වෙනවා.
About TechHub
මේ guide එක TechHub Knowledge Base එකේ කොටසක්. තව step-by-step IT guides සහ support වලට techhub.com.lk එකට යන්න.















