且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么vb.net找不到存在的文件?

更新时间:2022-06-13 06:21:13

映射的驱动器是特定于用户的。您是否在其他用户下运行appdomain? IIS或管理员?



如果是这样,那么您将需要使用完整的//服务器/文件夹路径或将驱动器映射为运行时。这将保证它们被映射为正确的用户。我有几个.bat提交,我将在启动和关闭为我映射驱动器的应用程序运行。
Mapped drives are user specific. Are you running the appdomain under a different user? IIS or Administrator?

If so, then you will either have to use the full //server/folder path or map the drives as runtime. That will guarantee that they are mapped for the correct user. I had a couple of .bat filed I would run on startup and shutdown of the app that mapped the drives for me.


我不知道为什么这不起作用。虽然我很确定Andy Lanng的网络和地图建议在这种情况下并且在这种情况下(即使用Lima设备及其提供的软件来访问作为标准硬盘驱动器的外部HD),但它似乎并不相关。



根据我的所有经验和直觉,我将数据文件中的行硬编码为代码中的变量数组,以及程序的工作方式,现在是最重要的事情!!!
I have no idea why this will not work. Whilst I am quite sure that Andy Lanng's Network & Mapping advice is spot on, in this instance and under these circumstances (i.e. using a Lima device & their supplied software to access the external HD as a standard Hard Drive) it doesn't appear relevant.

Against all my experience and instincts & I have hard-coded the lines from the data file into a variable Array within the code and that way the program works, which right now is the most important thing !!!