11-23-2011 10:40 AM
Hello
why this project perfectly working on visual studio 2003 and relative measurement studio of the same year now don't work on Visual Studio 2010 and Measurement studio 2010???
Thanks
11-28-2011 12:30 PM
I think the followink link responds to your question.
http://digital.ni.com/public.nsf/allkb/C204CAC86509342286256BBC00710918?OpenDocument
11-29-2011 10:26 AM
Your application actually works just fine after updating it to .NET 4.0. What is probably happening is that you still have the project set for .NET 2.0, but you do not have the Measurement Studio 2010 libraries for .NET 2.0. The Measurement Studio libraries .NET version is the middle number of the version numbers (ex: 9.1.40.159) and is installed based on the Visual Studio support options you installed. So if you only installed Measurement Studio 2010 for Visual Studio 2010, then you only have the Measurement Studio .NET 4.0 libraries. If you installed Measurement Studio 2010 for Visual Studio 2005, then you will have the .NET 2.0 libraries. You will need to install the Visual Studio 2005 support (even if you don't have VS 2005) and then update your references. Alternatively, I opened your project and switched the .NET version to 4.0 and used the MStudio .NET 4.0 assemblies and the application ran fine (nice user interface!).
01-19-2012 06:07 AM - edited 01-19-2012 06:08 AM
Hello
I have done like you suggest, switch to 4.0 framework but I receice the follow error: "LC.exe" exited with -1code
(Errore 1 "LC.exe" terminato con il codice -1)
Could you send me your working translation please?
Thanks
01-19-2012 06:20 AM
hello
if I try to compile it with last working version, I receive this on next code row the follow error message:
CType(Me.Led1, System.ComponentModel.ISupportInitialize).EndInit()
System.IO.FileNotFoundException non è stata gestita
FileName=NationalInstruments.UI.WindowsForms, Version=7.1.0.306, Culture=neutral, PublicKeyToken=4544464cdeaab541
FusionLog==== Informazioni sullo stato di preassociazione ===
REG: Utente = GIUSEPPE_PEZZEL\Administrator
REG: DisplayName = NationalInstruments.UI.WindowsForms, Version=7.1.0.306, Culture=neutral, PublicKeyToken=4544464cdeaab541
(Fully-specified)
REG: Appbase = file:///C:/Documents and Settings/Administrator.LEO_DRAGONE/Desktop/National Instrument/Programmi NI aggiornati al 2011/Generatore di Segnale/Generatore di Segnale/bin/
REG: PrivatePath iniziale = NULL
Assembly chiamante: Generatore di Segnale, Version=1.0.1966.18173, Culture=neutral, PublicKeyToken=null.
===
REG: l'associazione ha origine nel contesto di caricamento di default.
REG: utilizzo del file di configurazione dell'applicazione: C:\Documents and Settings\Administrator.LEO_DRAGONE\Desktop\National Instrument\Programmi NI aggiornati al 2011\Generatore di Segnale\Generatore di Segnale\bin\Generatore di Segnale.vshost.exe.Config
REG: utilizzo del file di configurazione host:
REG: utilizzo del file di configurazione computer da c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
REG: riferimento post-criteri: NationalInstruments.UI.WindowsForms, Version=7.1.0.306, Culture=neutral, PublicKeyToken=4544464cdeaab541
REG: tentativo di download del nuovo URL file:///C:/Documents and Settings/Administrator.LEO_DRAGONE/Desktop/National Instrument/Programmi NI aggiornati al 2011/Generatore di Segnale/Generatore di Segnale/bin/NationalInstruments.UI.WindowsForms.DLL.
REG: tentativo di download del nuovo URL file:///C:/Documents and Settings/Administrator.LEO_DRAGONE/Desktop/National Instrument/Programmi NI aggiornati al 2011/Generatore di Segnale/Generatore di Segnale/bin/NationalInstruments.UI.WindowsForms/NationalInstruments.UI.WindowsForms.DLL.
REG: tentativo di download del nuovo URL file:///C:/Documents and Settings/Administrator.LEO_DRAGONE/Desktop/National Instrument/Programmi NI aggiornati al 2011/Generatore di Segnale/Generatore di Segnale/bin/NationalInstruments.UI.WindowsForms.EXE.
REG: tentativo di download del nuovo URL file:///C:/Documents and Settings/Administrator.LEO_DRAGONE/Desktop/National Instrument/Programmi NI aggiornati al 2011/Generatore di Segnale/Generatore di Segnale/bin/NationalInstruments.UI.WindowsForms/NationalInstruments.UI.WindowsForms.EXE.
Message=Impossibile caricare il file o l'assembly 'NationalInstruments.UI.WindowsForms, Version=7.1.0.306, Culture=neutral, PublicKeyToken=4544464cdeaab541' o una delle relative dipendenze. Impossibile trovare il file specificato.
Source=Generatore di Segnale
StackTrace:
in NationalInstruments.Examples.ContGenVoltageWfm_IntClk.Generatore_Di_Segnale..ctor()
in NationalInstruments.Examples.ContGenVoltageWfm_IntClk.Generatore_Di_Segnale.Main() in C:\Documents and Settings\Giuseppe\Desktop\Laboratorio Energy Lab\Esperimenti\Generatore di Segnale\Generatore_di_Segnale.vb:riga 2033
in System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
in System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
in Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
in System.Threading.ThreadHelper.ThreadStart_Context(Object state)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
in System.Threading.ThreadHelper.ThreadStart()
InnerException: