是否可以使用GACUTIL将WSHOM.ocx添加到服务器程序集中或拖放 [英] Can WSHOM.ocx be added to a server assembly using GACUTIL or drag and drop

查看:62
本文介绍了是否可以使用GACUTIL将WSHOM.ocx添加到服务器程序集中或拖放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用GACUTIL将WSHOM.ocx添加到程序集目录中时,出现此错误"无法将程序集添加到缓存中:   文件名,目录名或卷 标签语法不正确."如果我尝试拖放,则会得到文件名,目录名或卷标签语法不正确:'wshom.ocx'.

When I try to add WSHOM.ocx to the assembly directroy using GACUTIL I get this error "Failure adding assembly to the cache:   The filename, directory name, or volume label syntax is incorrect."  If I try to drag and drop I get "The filename, directory name, or volume label syntax is incorrect: 'wshom.ocx'.

我正在尝试在SSIS包中使用'Interop.IWshRuntimeLibrary'(位于wshom.ocx中),并获取无法加载程序集的错误.

I am trying to use 'Interop.IWshRuntimeLibrary' (which is in wshom.ocx) in an SSIS package and get an error that the assembly cannot be loaded.

组装区中只有DLL有效吗?

Are only DLL"s valid in the assembly area?

谢谢

Rick

感谢Rick

推荐答案

脚本任务VS shell让我可以添加对Windows Scrip主机对象模型(C:\ windows \ Ssywow64 \ wshom.ocx)的引用.它允许使用Shell进行编码以创建快捷方式链接,构建工作正常,但是当您退出时会得到一个模板 错误VB中的错误,如果我在运行时使用C#都出错,则错误为无法加载文件或程序集'Interop.IWshRuntimeLibrary'.似乎它没有保存引用的程序集.如果退出后又回到VB版本,请尝试 直接构建失败,并显示找不到模板".事件日志指出VTSA有问题,我尝试过但没有解决.似乎可能需要将其置于GAC的装配体"中.区域.当我尝试将wshom.ocx添加到该区域时,我得到了 错误无法将程序集添加到缓存:文件名,目录名或卷标签语法错误."我使用此命令gacutil -i wshom.ocx(存在ocx的地方).瑞克(Rick),关于如何解决此问题的宝贵建议

The Script Task VS shell allows me to add the reference to the Windows Scrip Host Object Model (C:\windows\Ssywow64\wshom.ocx).  An it allows the coding using the Shell to create shortcut links, the build works fine, but when you exit I get a template error error in VB, no error if I use C# both error during runtime with "Could not load file or assembly 'Interop.IWshRuntimeLibrary'.  It seems it does not save the referenced assembly.  If I go back into the VB version after exiting and just try a build directly it failes with "cannot find template".  The event log pointed to a problem with VTSA, I tried that and it did not fix it.  It seems it may need to be in GAC "assembly" area.  When I try to add the wshom.ocx to this area I get the error "Failure adding assembly to the cache: The filename, directory name, or volume label syntax is in correct.  I use this command gacutil -i wshom.ocx (where the ocx exists).  Appreciate advice on how to solve this, Rick


这篇关于是否可以使用GACUTIL将WSHOM.ocx添加到服务器程序集中或拖放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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