com+:notimplementedexception
-
04-10-2019 - |
質問
成功せずに自分のcom+コンポーネント(ライブラリアプリケーションとして実行されている)を設置しようとしています。
私が得るのは、私がそれを作成しようとするときにnotimplementedexceptionだけです
dim myComponent As New MyComponent()
スタックトレースはそれほど役に立ちません:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String& uri)
at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(RuntimeType serverType, Object[] props, Boolean bNewObj)
at MyApp.MyMethod() in D:\blabla\MyService.asmx.vb:line 66 (this line have been modified by me)
com+コンポーネントは「Anycpu」用にコンパイルされ、WebbserviceはASP.NET 4アプリケーションプール内でX64を実行しています。
hrresult:-2147467263
解決
古い.tlbファイルを削除していませんでした(以前のバージョン用)。それらを削除するのに役立ちました。
所属していません StackOverflow