NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

ERR-17500 operation failed

hi,

I'm using teststand2020 API to create a .net application.In this application,I ran my sequence file and called a dll about insert-data to database,but it shows me member insert function not found in DLL.When I used teststand to run it,no error.how can I solve it?

0 Kudos
Message 1 of 7
(112 Views)

In DLL adapter,I can find insert function easily,and it indeed calls correctly.

0 Kudos
Message 2 of 7
(110 Views)

Some ideas/questions for you to investigate:

  1. Your summary of the error suggests that the step is finding the DLL and is loading it successfully. Could you post more details about the error message that you received, that might help? 
  2. Are you using a workspace when running in the Sequence Editor? If yes, this would use the "Current workspace directory" in the search directories. 
  3. Are you loading a TestStand environment when using the Sequence Editor? If yes, depending on how used, the environment could be loading different station settings than what the .NET application could be using. 
  4. I am curious, is the step using the CVI or DLL Adapter?
  5. Can you try to run the sequence in the installed .NET User Interface to see if that works? That would help implicate or rule out your custom application as affecting the behavior.

When you say that running the TestStand works I assume that means that you are using the Sequence Editor. One difference between that and your .NET application is that the base search directory would be different. Not sure if that could matter without knowing more about the DLL and its dependencies.

Scott Richardson
https://testeract.com
0 Kudos
Message 3 of 7
(75 Views)

1000207508.png

  Thanks for your replying.Here is the Error info.

     For 2,I indeed used workspace.So did I need to cancel this?

    For 3,I will check my station settings

    For 4,I used DLL adapter in this step.Because I need to insert my datas to the database,I used DLL to implement this part of the process.

    For 5,I tried to test my DLL,it's strange that other functions can work when I tried to call,but insert-function no works.

0 Kudos
Message 4 of 7
(65 Views)

The error message uses terms like member, class, assembly, which is what the .NET Adapter raises, not the DLL Adapter.

 

If the sequence works in the Sequence Editor and not in your UI, could it be resolving to find a different .NET DLL in each case?

 

Scott Richardson
https://testeract.com
0 Kudos
Message 5 of 7
(51 Views)

Ok,So how do I confirm the path of the call while the application works?

0 Kudos
Message 6 of 7
(17 Views)

If you only have one copy of the DLL on disk, you do not need to test for this.

Adapters likely use the capabilities of Engine.FindFile() to locate files, so you could use that in a step/expression and determine what it returns for the absolutePath parameter. For the currentSequenceFile parameter, you would pass a reference to the file that contains the step.

 

You previously stated that the function is found and works when called from the Sequence Editor, and is not found and errors when called from the customer UI. Can you clarify what you meant by your answer to (5) above? Did you get the same error from a TestStand installed UI example? Your previous answer suggests that your .NET DLL has multiple methods and that the "insert" method is the only one that fails in your custom UI?

 

Scott Richardson
https://testeract.com
0 Kudos
Message 7 of 7
(4 Views)