09-15-2013 04:24 AM
Hello,
I'm using machine's driver, what is created in framework .NET 4.0.
When calling out methods from this dll by using NI Test Stand I'm getting error:
Error: An exception occurred inside the call to .NET member 'MeasSignal':
System.Runtime.Serialization.SerializationException: Parse Error, no assembly associated with Xml key a2:http://schemas.microsoft.com/clr/nsassem/Measurements.Audio/Measurements.Audio%2C%20Version%3D1.0.1.... SpectrumAnalysis\r
I also tried to call out same method with console application (what I created with visual studio 2010) then everything was working as expected.
Any idea what could be wrong if I'm using Test Stand?
Best regards,
Heiki
09-16-2013 10:06 AM
Hey Heix,
This looks similar to the behavior described in this KnowledgeBase:
http://digital.ni.com/public.nsf/allkb/7B539BFFD0C1666186257B04006FA183?OpenDocument
Just for some more information, what version of TestStand are you using?
Which libray is the method in?
Where is this code stored? (i.e. is it a on the local disk or a network drive)
What kind of file are you calling in TestStand?
Are you trying to deserialize the steps?
Which process model are you using?
Best,
-KP
09-16-2013 12:09 PM
NOTE: Some other alternatives that don't seem to be mentioned in the KB:
1) Put assembly in the GAC
2) Put assembly in same directory as the exe you are running.
-Doug
09-19-2013 03:22 AM
Hello,
Thank you very much for your time and help. I was able to get it working. Your advice was exactly what I needed.
Best regards,
Heiki