Discussion:
Task object: get_SynchronizingObject does not have an implementation.
(too old to reply)
cdeleo
2006-08-02 22:10:09 UTC
Permalink
Whenever I try to run a program with a Task object defined, including the examples provided by NI, I get the error:
 

Additional information: Method get_SynchronizingObject in type NationalInstruments.DAQmx.DaqSystem from assembly get_SynchronizingObject does not have an implementation.
Unhandled Exception: System.TypeLoadException: Method get_SynchronizingObject in type NationalInstruments.DAQmx.DaqSystem from assembly get_SynchronizingObject does not have an implementation.
at NationalInstruments.Examples.WriteDigitalChannel.MainForm..ctor()
at NationalInstruments.Examples.WriteDigitalChannel.MainForm.Main() in c:\documents and settings\e90238\my documents\visual studio projects\diotest\mainform.cs:line 360The program '[2396] DIOTest.exe' has exited with code 0 (0x0).
Note that the program never actually reaches the line where I declare the and initialize the Task object, it actually fails in my Main function on the Application.Run line for a Windows app or without ever reaching a line of code according to the debugger in a console app. I couldn't find any mention of this in the forums here or elsewhere. Any ideas on what could cause this?
Carter De Leo
Jesse O
2006-08-03 20:40:13 UTC
Permalink
Hello Carter,
Since you are having problems running the NI Shipping examples, it sounds like
you have a problem with your DAQ installation.  Please make sure you have
the most recent version of the DAQmx driver (found <a href="http://www.ni.com/support/daq/versions_pci_pxi.htm" target="_blank">here</a>).&nbsp; Once
you have the newest driver you might want to try either repairing or upgrading
your driver.&nbsp; When you install the newest driver please make sure to
include support for either .NET 2003 and/or .NET 2005 (whichever you are
using).&nbsp;
After upgrading (or reinstalling), if you are still having problems can you
post back with more details.&nbsp; For example, what hardware are you using, what driver version are you
using, and what version of Visual Studio are you using?
Regards,
Jesse O.
Applications Engineering
National Instruments
cdeleo
2006-08-07 23:10:11 UTC
Permalink
Thank you for your response. I tried reinstalling the driver when I returned to work today, but it did not fix my problem. I am using a PCI-6503 Digital IO card, Visual Studio .NET 2003, Framework version 1.0, and NI-NAQmx 8.1. Interestingly, as I started typing this, I realized that your documentation is all written for Framework version 1.1. Thinking this could be the problem, I quickly upgraded to 1.1 and tried to rerun some of the shipped examples. They failed on the line where the first NI object was declared saying "this application cannot run using the active version of the Microsoft .NET runtime". Not really a step forward. It seems like I must be missing something in the installation. Do any of these problems sound familiar? Do I need to be targeting Framework version 1.1, or does it not matter terribly?
Carter De Leo

Loading...