04-06-2012 11:10 AM
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>
04-06-2012 12:42 PM
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
04-06-2012 12:45 PM
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
04-06-2012 05:38 PM
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.