1
我想在Excel中使用VBA访问现有的应用程序。当我运行我的VBA脚本,我在应用程序日志中获得混合模式的错误消息:Excel混合模式错误
"Error: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."
不过,我已经调用应用程序与下面的语句的配置文件:
<!-- VS 2010 needs this legacyV2 stuff -->
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
有什么建议吗?
感谢冰山的变化 - 这是不太工作还,但已经改变了行为。我正在努力研究现在正在发生的事情,并可能会回复。 – 2012-07-17 12:43:13