0

我有一个使用 C# 编写的 COM+ 应用程序。我有强烈命名和签名的程序集。我希望应用程序使用库项目和第 3 方 dll(log4net),但我不想将它们放在 GAC 中。问题是 COM+ 应用程序无法找到库 dll 和 log4net dll,因为它们在 GAC 中不存在。

我正在阅读另一篇stackoverflow 帖子,建议将“应用程序根目录”与 application.manifest 文件一起使用。我也试过这个,但现在我得到一个看起来像这样的错误:

COM+ 队列组件播放器无法创建队列组件的实例。CPlayer BindToObject

有什么建议么??

4

1 回答 1

0

I think I figured out the issue. There was a issue with some of the underlying code in the application, but I was unable to debug it. So, after commenting out the 'ServicedComponent' from the inheritance, I was able to debug my code, found the issue & fixed it.

The answer in this stackoverflow post actually works without registering dlls into GAC.

于 2011-07-06T15:36:08.400 回答