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:
Instance
is expensive. It should be done once, and reused. Every time you create an Instance
it reads megabytes of log files to ensure that everything was cleaned up.Session
isn'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 its v01
for webcache?)ESENT
events. The exact log file location should be present in the event log entries.esent.dll
can read older files, but not files from the future.Hope that helps,
-martin