oregon ha scritto:
Invia il testo completo dell'errore che dovrebbe essere molto lungo ...
System.TypeInitializationException non è stata gestita
HResult=-2146233036
Message=L'inizializzatore di tipo di 'NationalInstruments.Analysis.Math.Statistics' ha generato un'eccezione.
Source=NationalInstruments.Analysis.Enterprise
TypeName=NationalInstruments.Analysis.Math.Statistics
StackTrace:
in NationalInstruments.Analysis.Math.Statistics.Mean(Double[] inputData)
in WindowsApplication8.Form1.Button1_Click_2(Object sender, EventArgs e) in C:\Users\lanzi\Desktop\programmi visual studio\principale\WindowsApplication8\Form1.vb:riga 102
in System.Windows.Forms.Control.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnClick(EventArgs e)
in System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
in System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ButtonBase.WndProc(Message& m)
in System.Windows.Forms.Button.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
in System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
in System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
in System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
in System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
in Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
in Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
in Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
in WindowsApplication8.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:riga 81
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.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
in System.Threading.ThreadHelper.ThreadStart()
InnerException: System.ComponentModel.LicenseException
HResult=-2146232063
Message=NationalInstruments.Restricted.AnalysisLicenser is unlicensed.
Source=NationalInstruments.Common
StackTrace:
in NationalInstruments.Restricted.LicenseBase.ShowUnLicensedBehavior(Type type, Object instance)
in NationalInstruments.Restricted.LicenseBase.a(Type A_0, Object A_1, String A_2)
in NationalInstruments.Restricted.LicenseBase.a(Type A_0, Object A_1)
in NationalInstruments.Restricted.LicenseBase.RunTimeCheck(LicenseContext context, Type type, Object instance)
in NationalInstruments.Restricted.LicenseProviderBase.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
in System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
in System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
in NationalInstruments.Restricted.AnalysisLicenser..ctor()
in NationalInstruments.Analysis.Math.Statistics..cctor()
InnerException: