I am creating a COM class library with the .NET 4 framework for FoxPro. The main address for the library is much smaller:
[ComVisible (right)] [Guid ( "054fbf26-6d37-4d84-A732-fc49d77eeb21")] [InterfaceType (ComInterfaceType.InterfaceIsIDispatch)] Public Interface IFingerPrintEvents {[DispId (1)] Zero OnFinger (integer ID); } [ComVisible (right)] [Guid ( "7d07c9f9-a852-4287-9d7c-f5a9a6bdcf7b")] [InterfaceType (ComInterfaceType.InterfaceIsDual)] public interface IFingerPrintDll {[DispId (1)] string StartEnrollment (); [DispId (2)] string open (string connstring); } [ClassInterface (ClassInterfaceType.None)] [ComSourceInterfaces (typeof (IFingerPrintEvents))] [Guid ( "D9755E64-49A5-44ED-971F-64621DBEEEDF")] [PROGID ( "FingerPrint.dll")] public class FingerPrintDll: ServicedComponent, IFingerPrintDll {... (do IFingerPrintDll and impressions IFingerPrintEvents Imejment) ...}
I build everything in x86, have the right to set the config view and sign Library . Can I register with RegAsm with / tlb and / codebase tag but when I try to use it in FoxPro as it says, "Unknown COM status code. OLE error 0x80004003" CreateObject (). When I try to add it to C # app (to test) and try to get started with GetTypeFromProgID and then Activator. CreateAstance says, "Object is not set for an instance of reference object." It is said when I try to add COM library through context. It does not show any errors in the code, but when I launch it, it shows the same error I did the CD library on C # and both used to work in FoxPro and C #, but now the main difference is that my Library service uses web service through context. Maybe there is a problem? All the responses appreciated.
UPDATE
OK, my bad, my null reference exception due to the use of indispensable item in my maker ... stupidity 9000
No comments:
Post a Comment