Torsten,
I manually back-ported your test case to .NET 1.1 and verified that it works fine, without throwing exceptions, under .NET 1.1.
I have also reproduced the exception under .NET 2.0. However, I
have not been able to reproduce the problem under .NET 2.0 with a debug
version of LabVIEW. So I have not yet been able to determine if there
is a problem in LabVIEW contributing to this issue.
Note that LabVIEW 8.0 does not currently support drag and drop between .NET controls and LabVIEW's native controls.
Also, LabVIEW supports .NET 1.1, but has not yet been fully tested with .NET 2.0.
I recommend that you use .NET 1.1 with LabVIEW. You can do that
by placing a text file named LabVIEW.exe.config in the same directory
where LabVIEW.exe is located (by default, C:\Program Files\National
Instruments\LabVIEW 8.0) that contains the text:
<configuration>
<startup>
<requiredRuntime version="v1.1.4322"/>
</startup>
</configuration>
George Erwin-Grotsky
National Instruments LabVIEW Research & Development
George Erwin-Grotsky
National Instruments
LabVIEW Research & Development