COM +: NotImplementedException
-
04-10-2019 - |
Frage
Ich versuche, meine eigene COM + Komponente (läuft als Bibliothek-Anwendung) instaniate ohne Erfolg.
Alles, was ich bekommen ist ein NotImplementedException wenn ich versuche, es zu schaffen
dim myComponent As New MyComponent()
Der Stack-Trace ist nicht viel helfen:
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)
Die COM + -Komponente wird für "AnyCPU" zusammengestellt und die webbservice läuft x64 innerhalb ASP.Net 4 Anwendungspool.
HRResult: -2147467263
Lösung
Ich hatte die alten TLB-Dateien nicht entfernt werden (für eine vorherige Version). Entfernen von ihnen geholfen.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow