UCCAPI.DLL未加载DLL清单 [英] UCCAPI.DLL is not loading DLL manifest

查看:100
本文介绍了UCCAPI.DLL未加载DLL清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为,我们将为Outlook 2007/2003创建AddIn


我已经使用Visual Studio 2005创建了一个示例代码应用程序示例(没有拧入Outlook加载项代码)。< br>

项目-1带有"类库"类型

- 包括所有代码UCCAPI以创建平台和会话)
- 包括所有3个dll,它们已经通过UCC API编码的帮助也被设置 - 将Always始终复制到输出目录。
- 添加Interop的引用。
- 写一个清单"Project1.dll.manifest"并包含在项目中(根据UccApi.Dll的帮助文件)

项目-2与"WindowsApplication"相关联取决于Project-1

- 调用Project- 1 Assembly的Wrapper类创建PlatformClass对象。

当我执行代码时获取以下错误 -

由于以下错误,检索具有CLSID {EC10E7E8-797E-4495-A86D-3E9EADA6D5BB}的组件的COM类工厂失败:80040154。


现在,如果我使用regsvr32注册UccApi.Dll

项目将成功执行,但我的UCCAPI.dll已全局公开,它是不再私密。


我做了一个测试,我在 Project-2(这是应用程序可执行文件)中复制了所有内容。

并做了同样的上述步骤。它工作正常。没有注册COM dll。


我的问题是?

1)注册UCCAPI.dll是强制性的吗?如果不是,我如何才能将它仅用于DLL.Manifest

3)为什么exe.Manifest能够加载COM DLL,为什么不加载dll.manifest?

2)请发送示例代码以仅加载UccApi.dll throgh程序集清单(意思是 - < project> .dll.manifest - 不是exe.manifest)

如果有任何其他需要,请告诉我



As, we are going to create AddIn for Outlook 2007/2003)


I have created a sample piece of code application with Visual Studio 2005( without wring outlook add-in code).


Project-1 is with "Class Library" type 

- include all the code UCCAPI to create platform and session)
- include all 3 dlls which has been informed by help of UCC API coding also set - Copy Always to Output dir.
- Add Reference of Interop.
- Write a manifest "Project1.dll.manifest" and include in project (as per the Help file of UccApi.Dll)

Project-2 is with "WindowsApplication" depends on Project-1

- Calling  Project- 1 Assembly's Wrapper class which create PlatformClass object.

When I execute the code Getting following error- 

Retrieving the COM class factory for component with CLSID {EC10E7E8-797E-4495-A86D-3E9EADA6D5BB} failed due to the following error: 80040154.


Now, If I register UccApi.Dll using regsvr32

The project will execute success-fully , But my UCCAPI.dll has been exposed globally and it is no more private.


I alos did one test, where I copy everything in Project-2 (which is and application executable).

and did the same above steps. It worked fine. without REGISTERING the COM dll.


My Questions are?

1) Is it compulsory to Register UCCAPI.dll? If No, How can I make it private only with only DLL.Manifest

3) Why exe.Manifest is able to load COM DLL and why not dll.manifest?

2) Please send me the sample code to load UccApi.dll throgh assembly manifest only (means - <project>.dll.manifest - Not exe.manifest)

Please let me know if any thing else is required.










推荐答案

我遇到了同样的问题。你解决了吗?
我的电子邮件是 cacofish@hotmail.com
Hi, I meet the same problem. Have you solve it?
 My email is cacofish@hotmail.com


这篇关于UCCAPI.DLL未加载DLL清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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