Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NationalInstruments.Common 9.0.40.362 missing

You can manually create the app.config file and add it to your project. See the MSDN article on creating an app.config file: http://msdn.microsoft.com/en-us/library/ms184658.aspx

 

The config file will look something like this, but you may need to change the version numbers to the ones that make sense in your case.

 

<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>	<runtime>
		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
			<dependentAssembly>
				<assemblyIdentity name="NationalInstruments.Common" publicKeyToken="DC6AD606294FC298" culture="neutral"/>
				<bindingRedirect oldVersion="0.0.0.0-9.0.40.362" newVersion="9.1.40.159"/>
			</dependentAssembly>
		</assemblyBinding>
	</runtime>
</configuration>

 

National Instruments
0 Kudos
Message 11 of 14
(2,099 Views)

Thanks for the quick response! I have added the configuration file but it still gives the error. I looked at the properties of it and there is no build action. I tried changing it to a couple different things but still get an error. Is there some sort of setting I need to configure in order for the file to actually run or is it just supposed to know that its there?

 

Thanks,

Chris

0 Kudos
Message 12 of 14
(2,097 Views)

As a reference, I am just trying to use the example program titled "SimpleReadWrite.2010". It is a GPIB example that comes with the NI-488.2 install. Any help is greatly appreciated.

 

Thanks,

Chris

0 Kudos
Message 13 of 14
(2,096 Views)

Right-click the project and choose Add >> New Item then navigate to Application Configuration File and create your file that way. This will ensure that the file is created in the correct manner.

National Instruments
0 Kudos
Message 14 of 14
(2,091 Views)