×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Using .NET DLL in 4.5.3

Using .NET DLL in 4.5.3

Using .NET DLL in 4.5.3

(OP)
Hi All,

I need to make use of a DLL developed using C#.NET. I create the ETD with success making use of the .tbl interface created by .NET when making the DLL accessible for COM/COM+ applications. I have tested the .NET DLL in VB and all the functions works fine. I wrote my JAVA collaboration rules and compiled them with success. When I run the Adaptors, I get a exception error and I think  it's got something to do with the .NET DLL. Could someone please help !!!

Regards,

Pieter


The Exception:

CODE

     ew_OK_iBus_ODS (Information): *** Trace Mask Changed From 0x00000000-0x00000000 To 0x00000000-0x000000F4 - log file is on ***
     ew_OK_iBus_ODS (Information): Configuration for ew_OK_iBus_ODS
     ew_OK_iBus_ODS (Information):      Workslices: 1
     ew_OK_iBus_ODS (Information):      Collab: col_OK_iBus_ODS  Rule: cr_OK_iBus_ODS (1)
     ew_OK_iBus_ODS (Information):          Input Topics: 1
     ew_OK_iBus_ODS (Information):              Msg: et_JMS_OK_iBus - IQ: <none> - Cntrl: Yes Def: No
     ew_OK_iBus_ODS (Information):          Output Topics: 1
     ew_OK_iBus_ODS (Information):              Msg: et_ODS_DLL - IQ: <none> - Cntrl: No Def: No
     ew_OK_iBus_ODS (Information): Collaboration col_OK_iBus_ODS is about to run, waiting for start signal
     ew_OK_iBus_ODS (Information): Collaboration col_OK_iBus_ODS got start signal, running the collaboration
     ew_OK_iBus_ODS (Information): ServiceMain(): Started
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: General_Settings.Connection_Type=Topic
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: General_Settings.Transaction_Type=Internal
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: General_Settings.Delivery_Mode=Persistent
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: General_Settings.Maximum_Number_of_Bytes_to_read=5000
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: General_Settings.Default_Outgoing_Message_Type=Bytes
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: General_Settings.Factory_Class_Name=com.stc.common.collabService.SBYNJMSFactory
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: Message_Service.Server_Name=localhost_iqmgr
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: Message_Service.Host_Name=localhost
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: Message_Service.Port_Number=24053
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: Message_Service.Maximum_Message_Cache_Size=100
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: connector.type=COM
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: connector.class=com.stc.eways.com.ComEWayConnector
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: COM/DCOM_Configuration.ProgID=ODS_iBus_Breaker.iBus_Breaker
     ew_OK_iBus_ODS (Information): EBobConnectorProperties.loadConfiguration(): Loaded property: COM/DCOM_Configuration.Hostname=Localhost
     ew_OK_iBus_ODS (Information): JCS: Java collaboration translate threw a com.stc.common.collabService.CollabConnException!
     ew_OK_iBus_ODS (Information): *************** Exception occurred **************
     ew_OK_iBus_ODS (Information):  toString: com.stc.common.collabService.CollabConnException: [col_OK_iBus_ODS] JCCollabControllerImpl JCCollabControllerImpl::translate(): Error in calling firstTime inTranslate

     ew_OK_iBus_ODS (Information):
     ew_OK_iBus_ODS (Information):  getMessage: [col_OK_iBus_ODS] JCCollabControllerImpl JCCollabControllerImpl::translate(): Error in calling firstTimeinTranslate

     ew_OK_iBus_ODS (Information):
     ew_OK_iBus_ODS (Information):  StackTrace:
com.stc.eways.com.STCComException: COM Exception: 0x80070002 - Creating component of progid ODS_iBus_Breaker.iBus_Breaker: The system cannot find the file specified.

        at com.stc.eways.com.STCDispatchDriver.create(STCDispatchDriver.java:54)
        at com.stc.ODS.BreakerDLL.ODS_iBus_Breaker.initialize(ODS_iBus_Breaker.java:645)
        at com.stc.jcsre.JCollaboration.newInstance(JCollaboration.java:79)
        at cr_OK_iBus_ODSBase.createInstances(cr_OK_iBus_ODS.java:40)
        at com.stc.jcsre.JCollaboration.initialize(JCollaboration.java:46)
        at com.stc.common.collabService.JCCollabControllerImpl.initializeJCollaboratorExt(JCCollabControllerImpl.java:1232)
        at com.stc.common.collabService.JCCollabControllerImpl.firstTimeInTranslate(JCCollabControllerImpl.java:1217)
        at com.stc.common.collabService.JCCollabControllerImpl.translate(JCCollabControllerImpl.java:433)
com.stc.common.collabService.CollabConnException: JCollaboration.newInstance(): Exception in calling new/initialize() methods in ETD of instance (Key) name iBus_ODS Class Name: com.stc.ODS.BreakerDLL.
ODS_iBus_Breaker;
Exception:
        at com.stc.jcsre.JCollaboration.newInstance(JCollaboration.java:84)
        at cr_OK_iBus_ODSBase.createInstances(cr_OK_iBus_ODS.java:40)
        at com.stc.jcsre.JCollaboration.initialize(JCollaboration.java:46)
        at com.stc.common.collabService.JCCollabControllerImpl.initializeJCollaboratorExt(JCCollabControllerImpl.java:1232)
        at com.stc.common.collabService.JCCollabControllerImpl.firstTimeInTranslate(JCCollabControllerImpl.java:1217)
        at com.stc.common.collabService.JCCollabControllerImpl.translate(JCCollabControllerImpl.java:433)
com.stc.common.collabService.CollabConnException: [col_OK_iBus_ODS] JCCollabControllerImpl (initializeJCollaboratorExt) Error in initializing the User  Class class cr_OK_iBus_ODS

        at com.stc.common.collabService.JCCollabControllerImpl.initializeJCollaboratorExt(JCCollabControllerImpl.java:1235)
        at com.stc.common.collabService.JCCollabControllerImpl.firstTimeInTranslate(JCCollabControllerImpl.java:1217)
        at com.stc.common.collabService.JCCollabControllerImpl.translate(JCCollabControllerImpl.java:433)
com.stc.common.collabService.CollabConnException: [col_OK_iBus_ODS] JCCollabControllerImpl (firstTimeInTranslate) Error in      calling initialize method of user class class cr_OK_iBus_ODS

        at com.stc.common.collabService.JCCollabControllerImpl.firstTimeInTranslate(JCCollabControllerImpl.java:1220)
        at com.stc.common.collabService.JCCollabControllerImpl.translate(JCCollabControllerImpl.java:433)
com.stc.common.collabService.CollabConnException: [col_OK_iBus_ODS] JCCollabControllerImpl JCCollabControllerImpl::translate(): Error in calling firstTimeinTranslate

        at com.stc.common.collabService.JCCollabControllerImpl.translate(JCCollabControllerImpl.java:439)

     ew_OK_iBus_ODS (Information): *************************************************

RE: Using .NET DLL in 4.5.3


  Hi there,
don't know if it makes sense at all, but have you registered your COM proxy object?

aCat...

RE: Using .NET DLL in 4.5.3

(OP)
The DLL is correctly registered. I can access all the functions via VB and it returns correct values. I think it might have something to do with the fact that it is not a DLL registered in the DLL Server, but that it is registered in the .NET cache. When I do a dependency check on it, it returns that it makes use of mscoree.dll witch is the handle used for the Microsoft .NET Runtime Execution Engine.

I can build an ETD from the .tbl file. The Connection Point is set up correctly (ODS_iBus_Breaker.iBus_Breaker), but it seems that when it starts up and tries to access the .NET DLL via the .tbl interface, it does not work.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close