首页 / 浏览问题 / 组件GIS / 问题详情
启动时,未找到Select2.cur”的一部分。
7EXP 2018年10月09日

问题详细信息填写请严格参照如下示例内容填写,否则有被封禁的危险:
使用产品:iobject 9 D

操作系统:win10 家庭普通版 x64
数据类型: 文件型
问题详细描述:自己开发的程序,程序一启动就出现这个问题;通过观察,每当程序启动时,会将系统临时文件夹temp文件删除,这是为何?

System.IO.DirectoryNotFoundException: 未能找到路径“C:\Users\user\AppData\Local\Temp\Select2.cur”的一部分。
   在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   在 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, Boolean useLongPath, Boolean checkHost)
   在 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   在 System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
   在 System.IO.File.WriteAllBytes(String path, Byte[] bytes)
   在 SuperMap.UI.MapControl.Cursors.LoadActionCursor(String cursorName)
   在 SuperMap.UI.MapControl.Cursors.get_Select2()
   在 SuperMap.UI.MapControl.GetDefaultCursor()
   在 SuperMap.UI.MapControl.SetActionCursor(Boolean wait)
   在 SuperMap.UI.MapControl.DoMouseMove(MouseEventArgs e)
   在 SuperMap.UI.MapControl.OnMouseMove(MouseEventArgs e)
   在 System.Windows.Forms.Control.WmMouseMove(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.UserControl.WndProc(Message& m)
   在 SuperMap.UI.MapControl.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

1个回答

您好!您新建一个Form窗口程序看是否出现这个问题呢?如果还出现这个问题 ,就是您vs的权限问题。您通过管理员身份打开试试。
3,352EXP 2018年10月09日
谢谢,已解决!不是在开发过程中,是部署好以后出现的这个问题。现在怀疑是系统环境问题,同一系统新建了一个账户暂时不报告了,不排除超图的bug.
...