PDA

View Full Version : vb.net problema esecuzione


ciullo87
05-10-2010, 09:24
Buongiorno a tutti.
Ho un problema e non so da che parte rifarmi.
Lancio un ".exe" da Microsoft Excel 2007 e funziona tutto correttamente. Ho provato a lanciarlo sullo stesso pc con Microsoft Excel 2003 e tutto funziona correttamente. Ora stavo provando a lanciarlo da un altro pc con Excel 2003 ma mi vengono fuori degli errori.
Qualcuno sa aiutarmi?
Vi posto l'errore risultante.
Grazie anticipatamente.
************** Exception Text **************
System.ArgumentException: Argument 'Prompt' cannot be converted to type 'String'.
at Microsoft.VisualBasic.Interaction.MsgBox(Object Prompt, MsgBoxStyle Buttons, Object Title)
at GestioneConsegne.FormBase.FormBase_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
GestioneConsegne
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/gestione_consegne/GestioneConsegne.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

RaouL_BennetH
05-10-2010, 09:31
Sul pc dove non si esegue, manca qualche riferimento agli assembly che usi nel tuo programma.

Vedi quali .dll vengono generati nella tua dir /bin o /debug del progetto

ciullo87
05-10-2010, 12:03
Sul pc dove non si esegue, manca qualche riferimento agli assembly che usi nel tuo programma.

Vedi quali .dll vengono generati nella tua dir /bin o /debug del progetto

Potrebbe essere che uso qualche msgbox non passando valori come stringa? Ora non ho il progetto sotto mano. Comunque grazie del consiglio controlleṛ le .dll presenti nel progetto.

RaouL_BennetH
05-10-2010, 14:30
Potrebbe essere che uso qualche msgbox non passando valori come stringa? Ora non ho il progetto sotto mano. Comunque grazie del consiglio controlleṛ le .dll presenti nel progetto.

In effetti leggendo con calma l'eccezione credo tu abbia ragione sul msgbox