system.io.filenotfound - Runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I get the error system.io.filenotfound logged in the application event log
when my .NET 2.0 application runs. I compiled the application using NGEN
which compiled successfully without any errors. How can I determine the
path/name of the missing file?
 
debuggers are fine for the development world, but don't see how that's going
to help me in a production environment. I guess the real answer to the
question is "No" you cannot find out which file is missing, only that a
missing file caused the error. That should be a nice feature that MS could
add to then exception processing. After all knowing that a file is missing is
just as important as knowinf which one. Really this is no different that the
old VB6 file not found error number, a rose by other name....
 
debuggers are fine for the development world, but don't see how that's
going to help me in a production environment. I guess the real answer
to the question is "No" you cannot find out which file is missing,
only that a missing file caused the error. That should be a nice
feature that MS could add to then exception processing. After all
knowing that a file is missing is just as important as knowinf which
one. Really this is no different that the old VB6 file not found error
number, a rose by other name....

You may try out the FileMon at SysInternals. It should show you what files
are being requested and indicate if they are not found. It won't necessarily
tell you where in your code you are trying to access that file, but it is
a start. see http://www.sysinternals.com/Utilities/Filemon.html.

I also saw a slick solution from AppSight which could help isolate the issue.
Their solution is NOT cheap. You can find them at http://www.identify.com/.

Jim Wooley
http://devauthority.com/blogs/jwooley/default.asp
 
Back
Top