以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 更新异常 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=196208) |
|
-- 作者:kk000 -- 发布时间:2025/4/9 9:19:00 -- 更新异常 更新异常 蓝板请帮忙看看 一直更新不了 这个 c opy file.exe 报错 有 关调用实时(JI T)调试而不 是此对话框的 详细信息, 请参 见此消 息的结 尾。
************** 异常文本 **************
System.IO.IOException: 在某些文件和目录下无法完成操作。有关详细信息,请参阅该异常的 Data 属性。 在 Microsoft.VisualBasic.FileIO.FileSy stem.FxCopyO rMoveDirectory(CopyOrMove operation, String sourceDirectoryPath, String targetDirectoryPath, Boolean overwrite) 在 Microsoft.VisualBasic.MyServices.FileSystemProxy.CopyDirectory(String sourceDirectoryName, String destinationDirectoryName, Boolean overwrite) 在 CopyUpdateFile.frmCopyFile.Timer1_Tick(Object send er, EventArgs e) 在 System.Windows.Forms.Timer.On Tick(EventArgs e) 在 System.Windows.Forms.Timer.Time rNativeWindow .WndProc(Message& m) 在 System.Windows.Forms.NativeWindow.C allback(IntPtr hWnd, Int32 msg, IntPtr wpara m, IntPtr lparam)
************** 已加载的程序集 ************** mscorlib 程序集版本: 2.0.0.0 Win32 版本: 2.0.50727.9174 (WinRelRS6.050727-9100) 基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll ---------------------------------------- CopyFile 程序集版本: 1.0.0.0 Win32 版本: 1.0.0.0 基本代码: file:///E:/publ ish/Copyf ile.exe ---------------------------------------- System.Windows.Forms 程序集版本: 2.0.0.0 Win32 版本: 2.0.50727.9157 (WinRelRS6.050727-9100) ---------------------------------------- System 程序集版本: 2.0.0.0 Win32 版本: 2.0.50727.9176 (WinRelRS6.050727-9100) 基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing 程序集版本: 2.0.0.0 Win32 版本: 2.0.50727.9157 (WinRelRS6.050727-9100) 基本代码: 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.9157 (WinRelRS6.050727-9100) ---------------------------------------- mscorlib.resources 程序集版本: 2.0.0.0 Win32 版本: 2.0.50727.9174 (WinRelRS6.050727-9100) 基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll ---------------------------------------- Microsoft.VisualBasic.resources 程序集版本: 8.0.0.0 Win32 版本: 8.0.50727.9157 (WinRelRS6.050727-9100) ---------------------------------------- System.Windows.Forms.resources 程序集版本: 2.0.0.0 Win32 版本: 2.0.50727.9157 (WinRelRS6.050727-9100) ----------------------------------------
************** JIT 调试 ************** 要启用实时(JIT)调试, 该应用程序或计算机的 .con fig 文件(machine.co nfig)的 system.win dows.forms 节中必须设置 jitDebugging 值。 编译应用程序时还必须启用 调试。
例如:
<c onfigurati on> <system.windows.for ms j itDe bugg ing="true" /> </c onfigura tion>
启用 JI T 调试后,任何无法处理的异常 都将被发送到在此计算机上注册的 JIT 调试器, 而不是由此对话框处理。 管理员权限, 文件夹权限 都复查过 已经添加了 [此贴子已经被作者于2025/4/9 9:23:03编辑过]
|
|
-- 作者:有点蓝 -- 发布时间:2025/4/9 9:41:00 -- 检查一下 copyfile.exe是不是只读的,有没有被杀毒软件锁定。 不行的话考虑把这个publish目录删除掉,然后重新复制最新的publish过去使用
|
|
-- 作者:kk000 -- 发布时间:2025/4/9 9:50:00 --
这个情况 试过很多次 .用一段时候后就出问题 |
|
-- 作者:有点蓝 -- 发布时间:2025/4/9 9:58:00 -- 把整个publish目录加入到杀毒软件的信任目录里 |
|
-- 作者:cd_tdh -- 发布时间:2025/4/9 10:45:00 -- 确实需要这样,我就是这样干的 |