Pregunta

Estoy intentando instaniate mi propio componente COM + (que se ejecuta como una aplicación de biblioteca) sin éxito.

Todo lo que consigo es un NotImplementedException cuando intento para crearlo

dim myComponent As New MyComponent()

El seguimiento de la pila no es de mucha ayuda:

   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)

El componente COM + se compila para "Cualquier CPU" y el webbservice se está ejecutando dentro de 64 ASP.Net piscina 4 aplicación.

HRResult: -2147467263

¿Fue útil?

Solución

No se había quitado los viejos archivos .tlb (para una versión anterior). La eliminación de los ayudaron.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top