ISOLATION_AWARE_ENABLED的问题 [英] problem with ISOLATION_AWARE_ENABLED

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

问题描述

我们遇到问题...只需在1台计算机上

we have a problem... just on 1 machine

当我们编译并运行我们的应用程序并将ISOLATION_AWARE_ENABLED定义为1时,CreateActCtx会因错误2而失败。我们不知道为什么......我们试图用procmon跟随它,我们也试图在装配中遵循它。但是我们没有发现
出错了什么...我们知道的是,尝试从资源3加载清单并且这会失败(但是所有机器上的情况都是如此,并且dlls中可用的id在我们的例子中是2)...

when we compile and run our applications with ISOLATION_AWARE_ENABLED defined to 1, then the CreateActCtx fails with error 2... we have no idea why... we tried to follow it with procmon and we also tried to follow it in assembly. But we didn't find out what goes wrong... what we know is, that there's a try to load the manifest from resource 3 and this fails (but that's the case on all machines and the id available in dlls is 2 in our case) ...

所以...任何想法可能导致这个?为什么只有一台机器?有什么不同?可能有什么不同??

so... any ideas what could cause this? and why only on 1 machine? what's different? what could be different??

鲁道夫

推荐答案

嗨Rudolf Meier,

Hi Rudolf Meier,

感谢您在此发布。

>>当我们使用ISOLATION_AWARE_ENABLED编译和运行我们的应用程序时定义为1,然后CreateActCtx失败,错误2 ...我们不知道为什么......我们试图用procmon跟随它,我们也试图在程序集中跟随它。但是我们没有找到出错的地方......

众所周知,这个错误意味着系统无法找到指定的文件。您是否确保清单包含组件所需的所有程序集的完整列表?

As we all know, this error means the system cannot find the file specified. Do you make sure that the manifest contains a complete list of all assemblies that your component requires?

请注意,如果使用  进行编译定义了ISOLATION_AWARE_ENABLED,您也不能进行自己的激活上下文管理。在定义了ISOLATION_AWARE_ENABLED的情况下,Windows会忽略您的应用程序在
ActivateActCtx

CreateWindow
电话。 这意味着当您的应用程序使用ISOLATION_AWARE_ENABLED时,您应该确保清单包含组件所需的所有程序集的完整列表。

Note that if you compile with   ISOLATION_AWARE_ENABLED defined, you cannot also do your own activation context management. With ISOLATION_AWARE_ENABLED defined, Windows ignores any dynamic activation context creation your application may attempt to do between ActivateActCtx and CreateWindow calls.  This means that when your application uses ISOLATION_AWARE_ENABLED you should make sure that the manifest contains a complete list of all assemblies that your component requires.

最好的问候,

Baron Bi


这篇关于ISOLATION_AWARE_ENABLED的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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