You have posted the following code
SevenZip.SevenZipExtractor.SetLibraryPath(@"C:\Users\Desktop\SevenZipSharp.dll");
FileStream fs = File.OpenWrite(Path.Combine(@"C:\Users\Desktop\check", "common.ff"));
using (var file = new SevenZipExtractor(@"C:\Users\Desktop\check\common.ff"))
{
file.ExtractArchive(@"C:\Users\Desktop\check\");
}
and stated
Quote:
Here is the error:
A first chance exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The process cannot access the file 'C:\Users\Desktop\check\common.ff' because it is being used by another process
The line
FileStream fs = File.OpenWrite(Path.Combine(@"C:\Users\Desktop\check", "common.ff"));
is opening the file, as is
using (var file = new SevenZipExtractor(@"C:\Users\Desktop\check\common.ff"))
Lose the line that starts
FileStream fs = ...
and try again