ASP.NET 挑战性异常

来源:百度知道 编辑:UC知道 时间:2024/06/01 03:15:38
描述:这个异常是IIS日志,异常出现的几率不多,偶尔,但却会造成致命的客户体验,希望大家能帮忙解决下,谢谢

Event message: An unhandled exception has occurred.
Event ID: 6a9a0fb83232470baf76eb4bf23ca2aa
Event sequence: 563
Event occurrence: 2
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/523799681/Root-21-128873675443281250
Trust level: Full
Application Virtual Path: /
Application Path: D:\
Machine name: COMPUTER
Process information:
Process ID: 604
Process name: w3wp.exe
Exception information:
Exception type: IOException
Exception message: The process cannot access the file 'D:\index.aspx' because it is being used by another process.
Request information:
Request URL: http://www.XXX.com/index.aspx
Is impersonating: True
Stack trace: at System.IO.__Erro

我看你的堆栈调用信息,好像你有读取文件的操作,读完了有释放的操作么?如果没有的话,那么你读取的这个文件就被独占了,所以下次就打不开,就会出现错误信息:The process cannot access the file 'D:\index.aspx' because it is being used by another process.