Question

Je suis en train de instaniate mon propre composant COM + (fonctionnant comme une application bibliothèque) sans succès.

Tout ce que je get est un NotImplementedException lorsque je tente de créer

dim myComponent As New MyComponent()

La trace de la pile n'est pas d'un grand secours:

   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)

Le composant COM + est compilé pour "AnyCPU" et le webbservice est en cours d'exécution à l'intérieur ASP.Net x 64 4 pool d'applications.

HRResult: -2147467263

Était-ce utile?

La solution

Je n'avais pas supprimé les anciens fichiers .tlb (pour une version précédente). Leur suppression a aidé.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top