.NET 安装项目 - 安装到共享网络驱动器

发布于 2024-11-14 17:24:52 字数 463 浏览 2 评论 0原文

我有一个简单的 Windows 窗体应用程序。我为此创建了一个安装程序。我正在使用自定义操作类(它是一个带有自定义操作类的单独项目,并作为主要输出添加到安装项目中)来执行提交上的一些操作。

如果我将其安装到本地 C: 驱动器,安装程序可以正常工作。但当我尝试将其安装到映射到我的计算机的网络驱动器时,它失败了。这是我得到的

Error 1001. Error occurred while initializing the installation:
System.IO.FileNotFound Exception: could not load file or assembly file:///T:\TestFolder\Test.dll or one of it's dependencies.
The system cannot find the file specified. 

有什么想法吗?

谢谢

I have a simple windows form application. I have created an installer for that. I am using Custom Action class (It's a separate project with custom action class and added as primary output in the setup project) to perform some operations on Commit.

Installer works fine if I install it to my local C: drive. But it fails when I try to install it to network drive mapped to my computer. Here is what I get

Error 1001. Error occurred while initializing the installation:
System.IO.FileNotFound Exception: could not load file or assembly file:///T:\TestFolder\Test.dll or one of it's dependencies.
The system cannot find the file specified. 

Any ideas?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过潦 2024-11-21 17:24:52

目前尚不清楚谁正在尝试访问 Test.dll。

但是,在使用映射驱动器时,最好使用 UNC 路径约定。

http://support.microsoft.com/kb/307420/en-us描述了这样一个问题。

It is not clear as to who is trying to access Test.dll.

But when working with mapped drives it is better you use UNC path convention.

http://support.microsoft.com/kb/307420/en-us describes such a problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文