C#.NET Excel问题。 应用程序在Excel中处理.txt文件并上传到SharePoint

在这里黑暗中射击…

我有一个C#.NET应用程序解压缩一组.txt文件,将其转换为.xlsx并将其上传到SharePoint。 当强制系统更新被推送到我的电脑并且应用程序不再工作时,应用程序正在运行。 看来我的机器不能再操纵excel了。 我们正在使用Microsoft.Office.Interop.Excel命名空间。

有什么我可以检查我的机器本身可能是腐败的,不允许excel被操纵? 相同的代码在同一台机器上工作,并已工作多年。

我已经重新安装了应用程序和Microsoft Office。 我得到的错误是在下面。 我可以提供有关代码的任何特定部分的其他信息,但这似乎是我的机器而不是代码的问题。

System.IO.FileNotFoundException: Could not find file 'C:\Extracts\alwilliams3\Files\XLSX\TIMESHEET_EXTRACT(26_Jun_17- 1032AM).xlsx'. File name: 'C:\Extracts\alwilliams3\Files\XLSX\TIMESHEET_EXTRACT(26_Jun_17-1032AM).xlsx' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Ionic.Zip.ZipFile.get_ReadStream() at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf) at Ionic.Zip.ZipFile.Read(String fileName, TextWriter statusMessageWriter, Encoding encoding, EventHandler`1 readProgress) at CVS_DailyExtracts_To_Sharepoint.Utils.ExtractFiles(String fileName, String outputDirectory) at CVS_DailyExtracts_To_Sharepoint.Form1.ProcessFilesToStagingFolder(UploadFileName b) at CVS_DailyExtracts_To_Sharepoint.Form1.button3_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)