Probleme à l'exportation de ma programme

cs_fcolo Messages postés 201 Date d'inscription mercredi 8 février 2006 Statut Membre Dernière intervention 20 février 2007 - 27 févr. 2006 à 11:42
Le_proprio_de_mykeyes Messages postés 60 Date d'inscription mardi 26 juillet 2005 Statut Membre Dernière intervention 16 avril 2006 - 7 mars 2006 à 03:23
Bonjours,
je viens de réaliser une mini application (un condensé de la vrai) pour essayer de savoir comment faire tourner mon programme sur d'autres PCs.
Lorsque je fais une application de base (juste un bouton qui change le nom d'un label), ca fonctionne très bien.
Mais lorsque j'instègre mon OCX (d'une caméra IP axis) il me sort une erreur sur une des dll de cet ocx.
En local, ca fonctionne très bien, mais lorsque je copie tous les fichiers du dossier debu sur l'autre PC, ca me sort cette erreur.
Quelqu'un sait ce que je dois faire?
Si vous avez besoin d'autres explication/codes je vous les fournirais.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.


************** Exception Text **************
System.ArgumentException: Value does not fall within the expected range.
at AXISMEDIACONTROLLib.IAxisMediaControl.set_MediaURL(String pVal)
at AxAXISMEDIACONTROLLib.AxAxisMediaControl.set_MediaURL(String value)
at essairapide.Form1.button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\Frédéric\Mes documents\Visual Studio 2005\Projects\essairapide\essairapide\Form1.cs:line 20
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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 file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll]
----------------------------------------
essairapide
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: [file:///C:/Documents%20and%20Settings/Patrick.SIGMA/Bureau/TEMP/essai%20sur%20Stagiaire/essairapide.exe file:///C:/Documents%20and%20Settings/Patrick.SIGMA/Bureau/TEMP/essai%20sur%20Stagiaire/essairapide.exe]
----------------------------------------
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 file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.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 file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.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 file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll]
----------------------------------------
AxInterop.AXISMEDIACONTROLLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: [file:///C:/Documents%20and%20Settings/Patrick.SIGMA/Bureau/TEMP/essai%20sur%20Stagiaire/AxInterop.AXISMEDIACONTROLLib.DLL file:///C:/Documents%20and%20Settings/Patrick.SIGMA/Bureau/TEMP/essai%20sur%20Stagiaire/AxInterop.AXISMEDIACONTROLLib.DLL]
----------------------------------------
Interop.AXISMEDIACONTROLLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: [file:///C:/Documents%20and%20Settings/Patrick.SIGMA/Bureau/TEMP/essai%20sur%20Stagiaire/Interop.AXISMEDIACONTROLLib.DLL file:///C:/Documents%20and%20Settings/Patrick.SIGMA/Bureau/TEMP/essai%20sur%20Stagiaire/Interop.AXISMEDIACONTROLLib.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.

1 réponse

Le_proprio_de_mykeyes Messages postés 60 Date d'inscription mardi 26 juillet 2005 Statut Membre Dernière intervention 16 avril 2006
7 mars 2006 à 03:23
regarde dans la doc les valeurs que "string pVal" peut prendre. Tu as du écrire incorrectement puisqu'il s'agit d'une erreur d'argument (System.ArgumentException).
0
Rejoignez-nous