Page 1 of 1
C# Sample Loads an Exception
Posted: Fri Jun 04, 2010 11:48 am
by eryaf
Dear XDIMAX,
When I tried to build and run the C# example, it shows an error FileLoadException unhandled. I am still beginner in C#, may you tell me what s wrong and how s the solution/workaround? I am suing VC#2010 express.
Thanks.
E

Re: C# Sample Loads an Exception
Posted: Sat Jun 05, 2010 4:22 am
by serg
Hi eryaf,
This is because the MVS2010 default MS .NET version is 4, but the SUB-20 component is based on MS .NET v2.
We plan to include a SUB-20 .NET component v4 into our next release. In the meantime you can add the following
<startup useLegacyV2RuntimeActivationPolicy="true"></startup>
into the application configuration file - WindowsApplication1.exe.xml.
Attached is the resulting file(archived)
Regards
Re: C# Sample Loads an Exception
Posted: Wed Jun 09, 2010 3:40 pm
by eryaf
where can I find the file from my project folder?
Re: C# Sample Loads an Exception
Posted: Wed Jun 09, 2010 3:44 pm
by eryaf
Dear serg,
I did right click at the windowapplication1 and click properties. There, I change target framework into .NET Framework 2.0. Is it the same as what you do?
Thanks

E
Re: C# Sample Loads an Exception
Posted: Wed Jun 09, 2010 4:03 pm
by serg
Probably
