Foxtable(狐表)用户栏目专家坐堂 → [求助]应用程序中发生了无法处理的异常


  共有2386人关注过本帖树形打印复制链接

主题:[求助]应用程序中发生了无法处理的异常

美女呀,离线,留言给我吧!
小巫仙
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:110 积分:1442 威望:0 精华:0 注册:2016/8/6 12:39:00
[求助]应用程序中发生了无法处理的异常  发帖心情 Post By:2018/7/15 11:09:00 [只看该作者]

在项目关闭前,做了一个自动备份mdb文件的代码,发布后有的电脑正常,有的电脑会出现 应用程序中发生了无法处理的异常 这个报错

备份代码如下:


Syscmd.Project.save()
If FileSys.DirectoryExists(projectpath & "Attachments\" & Date.Today ) Then   
    Dim zip As New zipFile
    zip.Create("\\USER-20161121ZA\access\" & Date.Today & "-" & Date.now.Hour & Date.now.Minute & "图片.zip")
    zip.Password = "mypassword"
    zip.AddFolder(projectpath & "Attachments\" & Date.Today )
    zip.Close()
End If
If FileSys.DirectoryExists(mdblj) Then
    Dim zip1 As New zipFile
    zip1.Create("\\USER-20161121ZA\access\"& Date.Today & "-" & Date.now.Hour & Date.now.Minute & "mdb.zip")
    zip1.Password = "mypassword"
    zip1.AddFolder(mdblj, "*.mdb")
    zip1.Close()
End If



报错详细信息如下:
有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。
************** 异常文本 **************
System.IO.IOException: 在某些文件和目录下无法完成操作。有关详细信息,请参阅该异常的 Data 属性。
   在 Microsoft.VisualBasic.FileIO.FileSystem.FxCopyOrMoveDirectory(CopyOrMove operation, String sourceDirectoryPath, String targetDirectoryPath, Boolean overwrite)
   在 Microsoft.VisualBasic.MyServices.FileSystemProxy.CopyDirectory(String sourceDirectoryName, String destinationDirectoryName, Boolean overwrite)
   在 CopyUpdateFile.frmCopyFile.Timer1_Tick(Object sender, EventArgs e)
   在 System.Windows.Forms.Timer.OnTick(EventArgs e)
   在 System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** 已加载的程序集 **************
mscorlib
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8669 (QFE.050727-8600)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
CopyFile
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///E:/新系统-勿删/财务管理/Copyfile.exe
----------------------------------------
System.Windows.Forms
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8759 (QFE.050727-8700)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.5495 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
    程序集版本: 8.0.0.0
    Win32 版本: 8.0.50727.5483 (Win7SP1GDR.050727-5400)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
--------------------


 回到顶部
帅哥哟,离线,有人找我吗?
y2287958
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:狐神 帖子:4628 积分:33772 威望:0 精华:0 注册:2008/8/31 22:44:00
  发帖心情 Post By:2018/7/15 11:25:00 [只看该作者]

这个要等官方答复了

 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/7/15 16:35:00 [只看该作者]

试试卸载重新安装一下你的zip软件,比如安装 winzip 看看。

 回到顶部