.NET 安装项目 - 安装到共享网络驱动器
我有一个简单的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前尚不清楚谁正在尝试访问 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.