Site Search:
Sign in | Join | Help

Error calling eConnect_Requester using eConnect v8 (FileNotFoundException)

Last post 06-11-2008 6:47 AM by Alwani. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-05-2008 3:57 PM

    Error calling eConnect_Requester using eConnect v8 (FileNotFoundException)

    Hi Steve!  Long time no talk...

     Well, I'm back on ANOTHER eConnect project.  This time it's eConnect version 8 (for Dyn GP 8).  I'm creating a Windows Service that polls an "export queue" table for invoices and repackaging the invoice to send it out via EDI.

     I've only ever used eConnect 9 and up but I assumed that the versions were similar.  Here's what I'm doing and where it's breaking...

    1. My project is in VS2005.
    2. I imported and am referencing Microsoft.GreatPlains.eConnect, MiscRoutines, and Serialization8 dll's.
    3. I had to reference an "old" version of System.EnterpriseServices because eConnect v8 uses it.
    4. For testing, I'm trying the following:

    Dim serializer As New XmlSerializer(GetType(eConnectType))
    Dim eConnect As New eConnectType()
    Dim eConnectouttype As New RQeConnectOutType()
    Dim eConnectOut As New eConnectOut()
    Dim entrypoint As New eConnectMethods
    Dim requesterDoc As String = String.Empty
    Dim sConnectionString As String = GetGPConnectString()
    With eConnectOut
        .DOCTYPE = "Sales_Transaction"
        .OUTPUTTYPE = 1
        .INDEX1FROM = "INV92029"
        .INDEX1TO = "INV92029"
        .FORLIST = 1
    End With
    ...

    My code is failing on the bolded line (Dim entrypoint As New eConnectMethods) with the following exception: "The system cannot find the file specified. (Exception from HRESULT: 0x80070002)".  Here's the stack trace:

    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(Type serverType, Object[] props, Boolean bNewObj)
    at IntegrationExportService.ExportService.GetGPData(Int32 ExportPK, Int32 SOPType, String SOPNumber, String& xmlInvoice) in C:\Users\Joe Cogan\...\ExportService.vb:line 102

    I cannot figure out why it would be failing when dimming Microsoft.GreatPlains.eConnect.eConnectMethods.  All of the references and dll's are in place.  Have you seen this before?  Your insight will be greatly appreciated.  Thanks!

    Joe Cogan
    joecogan@adelphia.net
    c:  216.288.1488

    • 76.189.252.140
  • 06-05-2008 9:48 PM In reply to

    Re: Error calling eConnect_Requester using eConnect v8 (FileNotFoundException)

    Sorry, Joe, I don't have anything for you... 'cannot find the file specified'?

    'entrypoint' is in the Microsoft.greatplains.econnect dll. What file would there be to find?

     Maybe create a new app, with only one line of code, the 'entrypoint' line, simplify the troubleshooting.

    You need a VM with VS 2003 installed... that's what we used with GP 8

     

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • 74.1.246.98
  • 06-05-2008 9:57 PM In reply to

    Re: Error calling eConnect_Requester using eConnect v8 (FileNotFoundException)

    Yeah...  That's what I was thinking too.  I have a new development machine and I haven't installed VS2003 yet.  I was hoping that I could reference some 1.1 libraries (System.EnterpriseServices to name one) but that didn't work either.

    I think I might have to split up the solution between VS2003 and VS2008 because I have 7 projects that rely on .NET 3.5.  (It would be hard to talk the client into upgrading to v10 because I like the new IDE...;)

    Thanks for your help.  I'll let you know if any news develops!

     Joe Cogan

    • 76.189.252.140
  • 06-06-2008 8:09 AM In reply to

    Re: Error calling eConnect_Requester using eConnect v8 (FileNotFoundException)

    I have a little song that I've been singing and it's called 'Virtural Machine'. It's a beautiful thing. The low end technology is free, and you can run VS2003 in a pure environment.

    Steve Gray, MCDBA
    Technical Editor
    steve@VSToolsForum.com
    • 216.64.79.2
  • 06-11-2008 6:47 AM In reply to

    Re: Error calling eConnect_Requester using eConnect v8 (FileNotFoundException)

    hi, I have same issue and it solve by MS DTC service componet settings. I want you to help me so I am. I am also developing app in GP 8 to send the data from other app to GP using the eConnect 8.

    What exaclty you need to do is:

    Go to adminitration tools, then component services, expand your componenet services > computer > my computer and right click on it.

    Select the properties > go to MSDTC then click on Security Settings: and make sure that Network DTC Access, Allow... all check boxes are selected except enable Transaciton and enable XA transaction check box.

    Make sure that DTC account service is set to Network NT AUTHORITY\NETWORK SERVICE. NOw restart your serivces after setting this and try now.

    If you don't mind can you share with me your project at alwani89@hotmail.com 

     

    MCSD,
    Certified Microsoft Retail Specialist
    Certified Microsoft Great Plains Specialist
    Certified Cognos BI Specialist
    • 88.84.104.102
Page 1 of 1 (5 items)