Cannot create an instance of the .NEt Framework object

AitorEGAitorEG Member Posts: 342
Hello everyone!

I am creatiang a development, and it crashes in the CU 6224 "XML DOM Management", whit the next message:

ojk9hws5ai3y.png

"Cannot create an instace of the .NET Framweork object ..."

If I debug, we can see that it cracshes here:

8grak873ujhc.png


Any clue? Should I do something with the DLL files? Or anything to see with the .NET framework installation?

Thank you very much, any help is really appreciated!

Best Answers

Answers

  • AitorEGAitorEG Member Posts: 342
    Hello!
    Anyone with a small hint for this issue? I've read that i should place the DLLs in te AddIn folder of the RTC. Is that right? SHould I restart the server or something? I've found several System.Xml.dll files all over the computer. Which one is the correct one?

    Thank you again
  • RockWithNAVRockWithNAV Member Posts: 1,139
    Put the DLL in the Addin folder.
    Got to the property of the DotNet variable and make Run on Client as YES
    Instantiate the DotNet variable and now will be good to go
  • AitorEGAitorEG Member Posts: 342
    edited 2017-11-07
    Thank you all for your answers. I've doen both things, copy the DLLs, and allowing in the properties of the .NET object to run in the client. It seems that is working, or at least, the error is showing me now is different.

    75ccl9gx5w6g.png

    "Error in the call System.... Timeout excedeed"


    I'm trying to configure the timeout like this:
    HttpWebRequest := WebRequest.Create(Uri.Uri('https://XXXXXXXXXXXXXX/shipping/ship'));
    HttpWebRequest.Method := 'POST';
    HttpWebRequest.ContentType := 'application/xml';
    HttpWebRequest.Timeout := 30000;
    

    But it doesn't work, and I don't know if the solution would be to increment the timoeut, I'll work on it. Could this be because the WebService isn't returning a response?

    Really thanks again, appreciated!!!
  • AitorEGAitorEG Member Posts: 342
    edited 2017-11-13
    Hi everyone again,
    I've solved problems with different ,NET objects, copying the DLLs in the Add-In folder (it is supposed that this is not necesary, but just in case), and introducing "YES" in the RunOnClient property of ALL the DotNet variables in the different objects.
    But I'm finding issues with one object, that I can't solve with the same process I have been doing until this moment.
    jze3rub7vvqq.png

    I've copied all this DLLs:

    p8ug58nrz36w.png

    And as I've said before, i've also changed to YES the RunOnClient property, but nothing...

    How can i try to fix this issue in another way?

    Thank you very much


    edit:

    I thought that the issue could be that the request turns me an error, and the node can't be created becasue directly, it doesn't exist in the response. The server returns me a format error, and in the documentation, I can see that the request stream should start with "xml_in=". How can I configure this? I'm trying to do this, but with the same problem:
    ByteArray := Encoding.UTF8.GetBytes('xml_in=' + XMLDocDotNet.OuterXml);
    
Sign In or Register to comment.