Invoking a C#.NET dll from an external application using COM Objects

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shadowcat
    New Member
    • Nov 2008
    • 2

    Invoking a C#.NET dll from an external application using COM Objects

    Hi,

    I need to invoke a C#.NET dll that I developed in Siebel. For this I added the assemblies to GAC and then used regasm with the tlb option. Then in Siebel 7.7 I created a COM Object for this and invoked its methods successfully.

    However when I try the same thing in Siebel 8.0, I am able to create the COM object, but not able to invoke its methods. The Siebel application crashes when I try to invoke its methods. I know this is may be a Siebel problem, but if any of you thinks I can fix this by using a different regasm option or something in the .NET side of things please let me know. I have no clue why this is happening.

    Any pointers here would be appreciated!

    Thank you,
    SC
  • shadowcat
    New Member
    • Nov 2008
    • 2

    #2
    Just incase you need the commands I executed:

    gacutil /i D:\PS\POLICYSER VICE.SCINTERFAC E.dll
    gacutil /i D:\PS\POLICYSER VICE.SCCREATOR. dll
    gacutil /i D:\PS\POLICYSER VICE.PCINTERFAC E.dll
    gacutil /i D:\PS\POLICYSER VICE.PCS.dll
    gacutil /i D:\PS\POLICYSER VICE.PCCREATOR. dll
    gacutil /i D:\PS\POLICYSER VICE.SCS.dll
    gacutil /i D:\PS\POLICYSER VICE.DATATYPES. dll
    gacutil /i D:\PS\PolicyInf o.dll
    gacutil /i D:\PS\POLICYSER VICE.SCS.XmlSer ializers.dll
    gacutil /i D:\PS\UtilityCl ass.dll

    regasm "D:\PS\POLICYSE RVICE.DATATYPES .dll" /tlb:POLICYSERVI CE.DATATYPES.tl b
    regasm "D:\PS\PolicyIn fo.dll" /tlb:PolicyInfo. tlb
    [The above 2 dlls are those I need in Siebel]

    I got success messages [Types registered successfully..A ssemblies exported..]

    Inspite of all this the methods of the COM object that I create remain inaccessible from Siebel 8.0 while being accessible from Siebel 7.7.

    Comment

    • Juan Sandoval
      New Member
      • Apr 2011
      • 1

      #3
      Hi,
      I'm having the very same problem, with Siebel 8.0.0.8. I wonder, did you find any solution?

      Thanks,

      JPS

      Comment

      Working...