在system32中安装DLL组件时出错 [英] Error installing DLL component in system32

查看:81
本文介绍了在system32中安装DLL组件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在安装一个应用程序来在

system32目录中安装2个COM组件。我之前已经实现了将

安装到不同的目录(即C:\\\\\\\\\\\\\\\\\\\\\\当我将路径更改为

C:\ windows \ system32时,

安装应用程序似乎崩溃了。这是我收到的错误...


System.Runtime.InteropServices.COMException(0x80110401)错误

访问一个或多个对象时发生了


我猜它是配置问题?


任何帮助都会受到赞赏。


谢谢!

Hi,

I am working on an installer application to install 2 COM components in
the system32 directory. I had this implemented previously to install
to a different directory (i.e. C:\sample\dll) and it worked fine. The
setup app seems to crash though when I changed the path to
C:\windows\system32. This is the error I receive...

System.Runtime.InteropServices.COMException (0x80110401) Errors
occurred accessing one or more objects

I am guessing its a configuration problem?

Any help would be appreciated.

Thanks!

推荐答案

你不应该将COM组件安装到system32中。


这些是COM吗组件注册工作的.NET组件

通过interop?如果是这样,请在GAC中安装程序集(它们需要名为
strong命名),然后使用COM interop注册它们。


由于COM组件具有可见性在整个机器上,它让人感觉他们进入了GAC。你也不会有位置/查询问题




希望这会有所帮助。


- -

- Nicholas Paldino [.NET / C#MVP]

- mv * @ spam.guard.caspershouse.com


< al ****** @ gmail.comwrote in message

news:11 * *********************@b28g2000cwb.googlegr oups.com ...
You shouldn''t be installing COM components into system32.

Are these COM components .NET components that are registered to work
through interop? If so, install the assemblies in the GAC (they need to be
strong named) and then register those with COM interop.

Since COM components have visibility across the whole machine, it makes
sense that they go in the GAC. You also won''t have location/lookup issues
either.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<al******@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...




我正在开发一个安装程序应用程序来在

system32目录中安装2个COM组件。我之前已经实现了将

安装到不同的目录(即C:\\\\\\\\\\\\\\\\\\\\\\当我将路径更改为

C:\ windows \ system32时,

安装应用程序似乎崩溃了。这是我收到的错误...


System.Runtime.InteropServices.COMException(0x80110401)错误

访问一个或多个对象时发生了


我猜它是配置问题?


任何帮助都会受到赞赏。


谢谢!
Hi,

I am working on an installer application to install 2 COM components in
the system32 directory. I had this implemented previously to install
to a different directory (i.e. C:\sample\dll) and it worked fine. The
setup app seems to crash though when I changed the path to
C:\windows\system32. This is the error I receive...

System.Runtime.InteropServices.COMException (0x80110401) Errors
occurred accessing one or more objects

I am guessing its a configuration problem?

Any help would be appreciated.

Thanks!



在与架构团队讨论后,这就是他们决定使用的因为系统路径环境变量太大了完全在

服务器上,我们无法添加C:\sample \ dll对它来说。


我真的没有做出决定......不幸的是它的方式很好。

不幸。


并且他们不希望将它们安装在GAC中,我必须坚持

规格。


Nicholas Paldino [.NET / C#MVP]写道:
After a discussion with the architecture team this is what they decided
upon because the system path environment variable was too full on the
server and we couldn''t add "C:\sample\dll" to it.

It doesn''t come down to being my decision really...that the way it is
unfortunately.

And they don''t want them to be installed in the GAC, I gotta stick to
the specs.

Nicholas Paldino [.NET/C# MVP] wrote:

你不应该将COM组件安装到system32中。


这些COM组件.NET组件是否已通过互操作注册工作

?如果是这样,请在GAC中安装程序集(它们需要名为
strong命名),然后使用COM interop注册它们。


由于COM组件具有可见性在整个机器上,它让人感觉他们进入了GAC。你也不会有位置/查询问题




希望这会有所帮助。


- -

- Nicholas Paldino [.NET / C#MVP]

- mv * @ spam.guard.caspershouse.com


< al ****** @ gmail.comwrote in message

news:11 * *********************@b28g2000cwb.googlegr oups.com ...
You shouldn''t be installing COM components into system32.

Are these COM components .NET components that are registered to work
through interop? If so, install the assemblies in the GAC (they need to be
strong named) and then register those with COM interop.

Since COM components have visibility across the whole machine, it makes
sense that they go in the GAC. You also won''t have location/lookup issues
either.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<al******@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...




我正在开发一个安装程序应用程序来在

system32目录中安装2个COM组件。我之前已经实现了将

安装到不同的目录(即C:\\\\\\\\\\\\\\\\\\\\\\当我将路径更改为

C:\ windows \ system32时,

安装应用程序似乎崩溃了。这是我收到的错误...


System.Runtime.InteropServices.COMException(0x80110401)错误

访问一个或多个对象时发生了


我猜它的配置问题?


任何帮助都会受到赞赏。


谢谢!
Hi,

I am working on an installer application to install 2 COM components in
the system32 directory. I had this implemented previously to install
to a different directory (i.e. C:\sample\dll) and it worked fine. The
setup app seems to crash though when I changed the path to
C:\windows\system32. This is the error I receive...

System.Runtime.InteropServices.COMException (0x80110401) Errors
occurred accessing one or more objects

I am guessing its a configuration problem?

Any help would be appreciated.

Thanks!


我讨厌告诉你,但你的规格是错误的。


如果他们知道关于.NET的任何事情,他们都知道Fusion(

程序集加载器)不会在System32中查找dll。


但是嘿,如果那个''这是什么规格说的,我是谁来争论?


-

- Nicholas Paldino [.NET / C#MVP]

- mv*@spam.guard.caspershouse.com


< al******@gmail.com在留言中写道

news:11 ********************* @ p79g2000cwp.googlegro ups .com ...
I hate to tell you, but your specs are wrong.

If they knew anything about .NET, they would know that Fusion (the
assembly loader) does NOT look in System32 for dlls.

But hey, if that''s what the spec says, who am I to argue?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<al******@gmail.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...

与架构团队讨论后,这就是他们决定使用的因为系统路径环境变量太大了完全在

服务器上,我们无法添加C:\sample \ dll对它来说。


我真的没有做出决定......不幸的是它的方式很好。

不幸。


并且他们不希望将它们安装在GAC中,我必须坚持

规格。


Nicholas Paldino [.NET / C#MVP]写道:
After a discussion with the architecture team this is what they decided
upon because the system path environment variable was too full on the
server and we couldn''t add "C:\sample\dll" to it.

It doesn''t come down to being my decision really...that the way it is
unfortunately.

And they don''t want them to be installed in the GAC, I gotta stick to
the specs.

Nicholas Paldino [.NET/C# MVP] wrote:

>你不应该将COM组件安装到system32中。

这些是COM组件通过互操作注册工作的.NET组件?如果是这样,请在GAC中安装程序集(它们需要具有强名称),然后使用COM interop注册它们。

因为COM组件可以在整个机器上看到,它确实意味着他们进入了GAC。你也不会有位置/查询问题


希望这会有所帮助。

-
- Nicholas Paldino [.NET / C#MVP]
- mv*@spam.guard.caspershouse.com

<al******@gmail.com在留言中写道
新闻:11 ********************** @ b28g2000cwb。 googleg roups.com ...
>You shouldn''t be installing COM components into system32.

Are these COM components .NET components that are registered to work
through interop? If so, install the assemblies in the GAC (they need to
be
strong named) and then register those with COM interop.

Since COM components have visibility across the whole machine, it
makes
sense that they go in the GAC. You also won''t have location/lookup
issues
either.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<al******@gmail.comwrote in message
news:11**********************@b28g2000cwb.googleg roups.com...




我正在安装一个安装程序来安装2个COM组件

system32目录。我之前已经实现了将

安装到不同的目录(即C:\\\\\\\\\\\\\\\\\\\\\\当我将路径更改为

C:\ windows \ system32时,

安装应用程序似乎崩溃了。这是我收到的错误...


System.Runtime.InteropServices.COMException(0x80110401)错误

访问一个或多个对象时发生了


我猜它是配置问题?


任何帮助都会受到赞赏。


谢谢!
Hi,

I am working on an installer application to install 2 COM components in
the system32 directory. I had this implemented previously to install
to a different directory (i.e. C:\sample\dll) and it worked fine. The
setup app seems to crash though when I changed the path to
C:\windows\system32. This is the error I receive...

System.Runtime.InteropServices.COMException (0x80110401) Errors
occurred accessing one or more objects

I am guessing its a configuration problem?

Any help would be appreciated.

Thanks!



这篇关于在system32中安装DLL组件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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