无法进入网络驱动器 [英] Cant get to the networked drives

查看:92
本文介绍了无法进入网络驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我们有一个ERP应用程序,它允许通过在dll中添加表单并在数据库中提供对象名称来进行自定义。 我怀疑它使用反射加载新表单但我们无法访问代码。

We have have an ERP application that allows customizations by adding forms in dlls and providing the object names in the database.  I suspect it uses reflection to load the new forms but we don't have access to the code.

我们有一个表单加载图片来自网络驱动器。 它正在运作。 不是不是。  erp系统安装在程序文件下。 如果我将整个安装复制到其他位置,则可以正常工作。 

We have one form that loads images from a network drive.  It was working.  Not it is not.  The erp system is installed under program files.  If I copy the whole installation to another location it works. 

我添加了一个表单,将System.IO.DriveInfo.GetDrives的结果转储到网格中。 当我从"Program Files"运行应用程序时没有网络驱动器出现,不包括用户个人网络驱动器。 它们在Windows资源管理器中可见。
当我从调试器运行时,它们也在那里。

I added a form to dump the results of System.IO.DriveInfo.GetDrives to a grid.  When I run the application from "Program Files" no network drives appear, uncluding the users personal network drive.  They are visible in Windows Explorer. When i run from the debugger, they are there as well.

为什么这些驱动器不可见? 我怎样才能看到图片? 文件名和路径存储在数据库中。 

Why can't arent these drives visible?  How can I get to the images?  The file names and paths are stored in the database. 

谢谢

推荐答案

您好MarvelousSoftware,

Hi MarvelousSoftware,

感谢您在此发帖。

如果您有任何问题,请检查以下信息。

For your question, Please check the information below.

>>当我从"Program Files"运行应用程序时没有网络驱动器出现,不包括用户个人网络驱动器。 

>>When I run the application from "Program Files" no network drives appear, uncluding the users personal network drive. 

在您的说明中,如果您将整个安装复制到其他位置,则可以使用。当它不起作用时,你复制整个安装吗?如果没有,你是否只运行.exe文件?你如何调用GetDrives方法?它属于.exe文件吗?
或者只是在类似其他文件中,当你使用它时,请调用它?

In your description, if you copy the whole installation to another location it works. When it does not work, do you copy the whole installation? If not, do you only run the .exe file? How do you call the GetDrives method? Does it belong to the .exe file? Or just in another file like class, when you use it, call it?

>> < span style =""> 当我从调试器运行时,它们也在那里。

在调试器中,当你运行应用程序时,你有整个项目吗?

In debugger, when you run the application, do you have the whole project?

>> 为什么这些驱动器不可见? 

>>Why can't arent these drives visible? 

我认为你从程序文件运行应用程序时会遗漏一些东西。

I think you miss something when you run application from Program Files.

最好的问候,

Wendy


这篇关于无法进入网络驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆