无法加载文件或程序集Interop.SHDocVw - 单击一次部署 [英] Could not load file or assembly Interop.SHDocVw - Click once deployment

查看:102
本文介绍了无法加载文件或程序集Interop.SHDocVw - 单击一次部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过点击一次部署我的应用程序(需要Interop.SHDocVw)。我一直在尝试在网上找到有关如何加载此DLL的所有内容。我在清单中看到它,我将它的引用设置为复制本地,我在bin下的app.publish文件夹中看到.deploy
扩展名。发布后,我在服务器上看到了其余的文件,我已经用Mage检查了exe清单,它也在那里。 

I'm trying to deploy my app (which needs Interop.SHDocVw) via click once. I have been trying everything I can find on the net about how to get this DLL to load. I see it in the manifests, I have it's reference set to copy local, I see it with the .deploy extension in the app.publish folders under bin. After publishing I see it on the server with the rest of the files and I've checked the exe manifest with Mage and it's there too. 

但是当我运行安装它时不要复制dll,以免应用程序失败。对于我的测试,我手动复制它,我的应用程序工作正常,但是当我部署时,我无法解释如何找到应用程序的安装位置,然后如何复制
文件。  ;

But when I run the install it does not copy the dll over so the app fails. For my testing I copied it manually over and my app works fine, but when I deploy, there's no way I'll be able to explain how to find where the app was installed, then how to copy the file. 

我把头发拉出来 - 我剩下的一点点: - / 

I'm pulling my hair out - what little I have left :-/ 

任何想法/建议? - 自从周一以来,我一直试图解决这个问题!

Any ideas/suggestions? - I've been trying to sort this out since Monday!

此时我正在认真考虑废弃一次点击并构建一个MSI。如果它无法复制DLL有多可靠?

At this point I'm seriously considering scrapping One click and building an MSI. If it can't copy a DLL how reliable is it?

推荐答案

没有Takers?好吧,我发现了一个kludge解决方法 - 我创建了一个安装项目,将Interop.SHDocVw安装到GAC。然后我可以使用Oneclick加载应用程序,因为Interop.SHDocVw现在在GAC中可以运行。我不喜欢这个作为解决方案,但它是
的工作原理,所以我现在要用它来运行它。如果有人想出一个很棒的解决方案:-)
No Takers? Well I've found a kludge work around - I created a setup project that installs Interop.SHDocVw to the GAC. Then I can use Oneclick to load the app and because Interop.SHDocVw is now in the GAC it works. I don't like this as a solution but it works so I'm going to run with it for now. If someone comes up with a solution that's be great :-)


这篇关于无法加载文件或程序集Interop.SHDocVw - 单击一次部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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