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