NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

System.Runtime.Serialization.SerializationException

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

 

0 Kudos
Message 1 of 4
(4,489 Views)

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

Kurt P
Automated Test Software R&D
Message 2 of 4
(4,462 Views)

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

Message 3 of 4
(4,456 Views)

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

0 Kudos
Message 4 of 4
(4,416 Views)