当我们尝试创建 Component Link 对象时,以下行代码给出异常:
三重应用代码:
string strUrl = String.Empty;
ComponentLink comp = new ComponentLink(strUrl);
例外:
System.BadImageFormatException was caught
Message="An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"
Source="netrtsn"
StackTrace:
at Codemesh.JuggerNET.NativeInterface.GetJvmLoader(Int32 ctorVersion, String configFile, String vers, String conf, String reserved, Boolean bEnvOverrides, Boolean bDefaultJvm, Int32 traceFacility, Int32 traceLevel, Int32& error)
at Codemesh.JuggerNET.JvmLoader.GetJvmLoader(Boolean bEnvOverrides, Boolean bDefaultJvm, TraceFacility fac, TraceLevel level)
at Codemesh.JuggerNET.JvmLoader.GetJvmLoader()
at Codemesh.JuggerNET.NativeInterface.ToJavaStringPinning(String str, Int32 length, IntPtr& result)
at Codemesh.JuggerNET.NativeInterface.ToJavaString(String str)
at Codemesh.JuggerNET.JavaMethodArguments.Add_string(String str)
at Codemesh.JuggerNET.JavaMethodArguments.Add(Object obj, Type type)
at Codemesh.JuggerNET.JavaMethodArguments.Add(Object obj)
at Com.Tridion.Linking.ComponentLink..ctor(String publicationURI)
at Tridion.ContentDelivery.Web.Linking.ComponentLink..ctor(String publicationUri)
at ResxBind.ResolveLink(String strTcmUri) in F:\Share\Rajeev\Tridion2011\IntegrationLayer\Com.Emirates.Pss.Ibe.UILib\CommonAPI.cs:line 2077
根据例外情况,这将与旧 DLL 有关,但是我已经删除了最新的 Tridion 2011 Dll 的所有引用。
求指教,太丢人了!!
谢谢。
最好的祝福,
多发性硬化症