Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Could not load file or assembly 'NationalInstruments.Net'

Hello Everyone,

 

I am running into this error and I have tried removing and adding the reference, cleaning the solution and still no help...

 

Here is the error..

 

Could not load file or assembly 'NationalInstruments.Net, Version=13.0.40.242, Culture=neutral, PublicKeyToken=dc6ad606294fc298' or one of its dependencies. An attempt was made to load a program with an incorrect format.

 

Here is where the code is blowing up at... It's with the DataSocketServer.

 

Appreciate any help I can get.

 

private bool InitializeDataOutput()         {

            try            

              {                

                  dataSocketServer = new DataSocketServer(true, true);            

              }            

           catch (DataSocketException e)            

             {                 Logger.LogError("Couldn't set up the DataSocket server in     +  "OccDatasocketServerController.InitializeDataOutput");                                         

                               Logger.LogError(e.ToString());                

                               return false;            

             }            

                 .....

                return true;        

            }

0 Kudos
Message 1 of 2
(5,529 Views)

Hi t_edwards,

 

I spoke with Anjelica W., who is currently assisting you with this issue, and she will be happy to help from the NI Support side. As for on the forums, I would suggest if you can provide a little more background on the error, versions of software you are using (especially Visual Studio and DataSocket), and whether you are using measurment studio or not. Another important piece of info is what your platform target is set to, as it may need to be set to x86 rather than AnyCPU.

 

These bits of information might help a forum member propose a solution.

 

 

Evan See
National Instruments
0 Kudos
Message 2 of 2
(5,507 Views)