Registeration of the C# com problems


#1

Hi guys:
There is registered problem of C# com i come cross, which is when i registered the C# com by regasm tooll successfully i still can’t find the com in the com library list in my system, the com is aspose.cells.dll and i have already add it to program cache assembly by gacutil, the windows registered table also had the key-value pair, so it confuse me very much and any assistances is very appreciated!!!


#2

@yangyi8010,

Thanks for your query.

Well, it looks like you are using Aspose.Cells component via COM interop. Are you trying to use Aspose.Cells assembly directly via COM interop. Well, we think the better way is you should access Aspose.Cells library by wrapping it into a custom .NET component and expose this component to your environment via COM Interop. You will write a COM wrapper that references to Aspose.Cells assembly and does all the work you desire with it (e.g you may write your custom methods which use Aspose.Cells APIs accordingly), which should expose your desired methods to unmanaged code.

Since you are finding issue with registration, still not sure though, I think you may separately create a simple component/class in C# using VS.NET (without involving Aspose.Cells API), build it to generate Dll file, now try to register it using command line:
i.e.,
regasm.exe MyLibrary1.dll /codebase
now check if you see component in the com library list in your system or not.