Solution: The process cannot access the file [filename] because it is being used by another process.
2014-03-28 15:01
447 查看
http://www.brianstevenson.com/blog/solution-the-process-cannot-access-the-file-filename-because-it-is-being-used-by-another-process
在website上提交了请求,系统生成个文件并发往用户邮箱后发现该文件删除不了。明明是同一个进程,却提示被另一个进程占用。必须要recycle了application pool才能手动删除。
原来是因为发邮件的message需要在发送后diapost()后才可以。
Process Monitor v3.1
http://technet.microsoft.com/en-us/sysinternals/bb896645
process monitor 使用教程
http://baoku.yunduan.cn/d/artitem/2274/1/9/0/432/
Portmon for Windows v3.03
http://technet.microsoft.com/en-us/sysinternals/bb896644
DiskMon for Windows v2.01
http://technet.microsoft.com/en-us/sysinternals/bb896646
DebugView v4.81
http://technet.microsoft.com/en-us/sysinternals/bb896647
在website上提交了请求,系统生成个文件并发往用户邮箱后发现该文件删除不了。明明是同一个进程,却提示被另一个进程占用。必须要recycle了application pool才能手动删除。
原来是因为发邮件的message需要在发送后diapost()后才可以。
MailMessage mail = new MailMessage();
。。。
mail.Dispose();
Process Monitor v3.1
http://technet.microsoft.com/en-us/sysinternals/bb896645
process monitor 使用教程
http://baoku.yunduan.cn/d/artitem/2274/1/9/0/432/
Portmon for Windows v3.03
http://technet.microsoft.com/en-us/sysinternals/bb896644
DiskMon for Windows v2.01
http://technet.microsoft.com/en-us/sysinternals/bb896646
DebugView v4.81
http://technet.microsoft.com/en-us/sysinternals/bb896647
相关文章推荐
- C#使用Create创建文件后,报The Process cannot access the file because it is being used by another process的异常
- 处理文件时遇到:The process cannot access the file because it is being used by another process.
- FileStream:The process cannot access the file because it is being used by another process
- The process cannot access the file because it is being used by another process.
- IIS:The process cannot access the file because it is being used by another process.
- C#使用Create创建文件后,报The Process cannot access the file because it is being used by another process的异常
- 【转】IIS: The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
- the process cannot access the file because it is being used by another process
- the process cannot access the file because it is being used by another process
- the process cannot access the file because it is being used by another process
- the process cannot access the file because it is being used by another process
- C# The process cannot access the file because it is being used by another process
- the process cannot access the file because it is being used by another process
- FileStream:The process cannot access the file because it is being used by another process
- 【IIS】the process can not access the file because the file is being used by another process
- Bug on Build Solution: "Unable to copy file... because it is being used by another process.."
- 解决编译报错:Unable to copy file, because it is being used by another process.
- System.IO.IOException:The process cannot access the file 'XX.xml' because it is being used by another process. 解决方案
- Error: because it is being used by another process
- File ID 1 of database ID 6 cannot be shrunk as it is either being shrunk by another process or is empty 的解决方案