I'm using ManagedEsent Library to read data from Internet Explorer's Cache using the WebCacheV01.dat file. I get the exception below everytime, despite changing the WebCacheV01.dat severally from different machines.
Microsoft.Isam.Esent.Interop.EsentLogFileCorruptException: 'Log file is corrupt'
Has anyone else encountered this before? How did you go about it? I have attached a screenshot to show where the exception is thrown.
Many things going on here:
Instanceis expensive. It should be done once, and reused. Every time you create anInstanceit reads megabytes of log files to ensure that everything was cleaned up.Sessionisn't too expensive. If you have a server-scale application, then you should reuse sessions, but at small scale it doesn't matter much.Instance, such as the log file path, the log file prefix (I think itsv01for webcache?)ESENTevents. The exact log file location should be present in the event log entries.esent.dllcan read older files, but not files from the future.Hope that helps,
-martin