IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

VB.NET Discussion :

Problème d'exécution application VB.NET


Sujet :

VB.NET

  1. #1
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Juin 2015
    Messages
    2
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 29
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2015
    Messages : 2
    Par défaut Problème d'exécution application VB.NET
    Salut tous, j'ai crée un program qui fonctionne parfaitement sur mon pc, mais il donne ce problem dans tous les autres pc, je comprend que le problem c'est de la COM component qui manques/non enregistrée dans l'autre pc mais j'avait fait tous pour le "fixer" et je pu pas.. j'ai meme aussi cree ce Bat pour m'aider et aussi rien changer.
    Aussi c'est une image du problem: Nom : 55r1h4.png
Affichages : 342
Taille : 50,6 Ko
    Dll_Fixer.Bat
    """
    @echo off
    mkdir C:\Windows\Microsoft.NET\Framework\v4.0.30319
    mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a
    mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089
    mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system\v4.0_4.0.0.0__b77a5c561934e089
    mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089
    mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a
    mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Xml\v4.0_4.0.0.0__b77a5c561934e089
    mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Core\v4.0_4.0.0.0__b77a5c561934e089
    mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a
    copy C:\Users\%username%\Desktop\dll\mscorlib.dll C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
    copy C:\Users\%username%\Desktop\dll\Microsoft.VisualBasic.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll
    copy C:\Users\%username%\Desktop\dll\system.Windows.Forms.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\system.Windows.Forms.dll
    copy C:\Users\%username%\Desktop\dll\system.Drawing.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.Drawing.dll
    copy C:\Users\%username%\Desktop\dll\system.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system\v4.0_4.0.0.0__b77a5c561934e089\system.dll
    copy C:\Users\%username%\Desktop\dll\system.Runtime.Remoting.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\system.Runtime.Remoting.dll
    copy C:\Users\%username%\Desktop\dll\system.Configuration.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.Configuration.dll
    copy C:\Users\%username%\Desktop\dll\system.Xml.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Xml\v4.0_4.0.0.0__b77a5c561934e089\system.Xml.dll
    copy C:\Users\%username%\Desktop\dll\system.Core.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Core\v4.0_4.0.0.0__b77a5c561934e089\system.Core.dll
    Regsvr32.exe /s C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
    Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll
    Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\system.Windows.Forms.dll
    Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.Drawing.dll
    Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system\v4.0_4.0.0.0__b77a5c561934e089\system.dll
    Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\system.Runtime.Remoting.dll
    Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.Configuration.dll
    Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Xml\v4.0_4.0.0.0__b77a5c561934e089\system.Xml.dll
    Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Core\v4.0_4.0.0.0__b77a5c561934e089\system.Core.dll
    msg * Done!
    """

    Et aussi c'est le problem dans le photo:
    """
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Клас не е регистриран (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) ---> System.Runtime.InteropServices.COMException: Клас не е регистриран (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
    at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
    at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
    at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
    at System.Windows.Forms.AxHost.CreateInstance()
    at System.Windows.Forms.AxHost.GetOcxCreate()
    at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
    at System.Windows.Forms.AxHost.CreateHandle()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.AxHost.EndInit()
    at RconBot_v2._00.Conn.InitializeComponent()
    at RconBot_v2._00.Conn..ctor()
    --- End of inner exception stack trace ---
    at RconBot_v2._00.My.MyProject.MyForms.Create__Instance__[T](T Instance)
    at RconBot_v2._00.My.MyProject.MyForms.get_Conn()
    at RconBot_v2._00.zombie.Timer2_Tick(Object sender, EventArgs e)
    at System.Windows.Forms.Timer.OnTick(EventArgs e)
    at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18063 built by: FX45RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    Rcon&Ban Tool By Anis v1.20
    Assembly Version: 1.2.3.9
    Win32 Version: 1.2.4.5
    CodeBase: file:///C:/Users/The3Y3/Desktop/In%20Progress/Rcon%26Ban%20Tool%20By%20Anis%20v1.20.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.6.57.0 built by: NETFXREL2
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34245 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    AxInterop.MSWinsockLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/The3Y3/Desktop/In%20Progress/AxInterop.MSWinsockLib.DLL
    ----------------------------------------
    Interop.MSWinsockLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/The3Y3/Desktop/In%20Progress/Interop.MSWinsockLib.DLL
    ----------------------------------------
    System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.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.
    """
    Svp une solution Detaillé, Merci beaucoup.

  2. #2
    Expert éminent Avatar de Pol63
    Homme Profil pro
    .NET / SQL SERVER
    Inscrit en
    Avril 2007
    Messages
    14 197
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : .NET / SQL SERVER

    Informations forums :
    Inscription : Avril 2007
    Messages : 14 197
    Par défaut
    ton .bat ne sert à rien en l'état

    pour qu'un programme .net fonctionne sur un autre pc il faut que le framework utilisé pendant le développement soit installé et que les dlls tierces (autres que celles de .net) soit installées
    vu le crash tu as au moins un framework, après vérifie que c'est le bon

    pour les dlls tierces .net il suffit de les mettre à coté de l'exe
    vu ton message d'erreur c'est une dll COM qui pose problèmes, celles ci doivent être quelque part sur le disque dur et registrées (regsvr32.exe "dllpath")
    une dll .net ne se registre pas

    ton .bat a l'air de copier les dlls du framework, très mauvaise idée !
    Cours complets, tutos et autres FAQ ici : C# - VB.NET

  3. #3
    Membre Expert
    Avatar de wallace1
    Homme Profil pro
    Administrateur systèmes
    Inscrit en
    Octobre 2008
    Messages
    1 966
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Puy de Dôme (Auvergne)

    Informations professionnelles :
    Activité : Administrateur systèmes
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Octobre 2008
    Messages : 1 966
    Billets dans le blog
    7
    Par défaut
    bonjour,

    je rejoins pol63 concernant ce qu il mentionne (je le rejoins souvent sur ses propos d'ailleurs ^^).
    j ajoute qu il faire attention aux pb de droits que tu risques de rencontrer lorsque tu crées des repertoires et copies des fichiers dans des emplacements du systeme !

    ++

  4. #4
    Candidat au Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Juin 2015
    Messages
    2
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 29
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Juin 2015
    Messages : 2
    Par défaut
    j'ai déja mit tous ces .dll dans le fichier d'éxécution du program, mais rien passer, le meme problem, le problem que les COM component peuvent pas etre entregistrer dans les autres pc qui excecute ce program, j'ai trouver une petite chose qui je pense vas m'aider, c'est "Arreter lorsqu'une exception est: common language runtime exceptions" tu le trouve en cliquant Ctrl + Alt + E, cas me donne les codes qui empeche mscordil.dll

Discussions similaires

  1. Réponses: 0
    Dernier message: 10/12/2012, 12h12
  2. Problème d'exécution application C #
    Par spidey89 dans le forum C#
    Réponses: 16
    Dernier message: 19/05/2011, 09h53
  3. Problème d'exécution application VB.NET
    Par Hiraa dans le forum VB.NET
    Réponses: 14
    Dernier message: 21/06/2010, 10h48
  4. Problème IIS et application ASP.NET
    Par lou-03 dans le forum IIS
    Réponses: 4
    Dernier message: 10/05/2010, 17h16
  5. Problème en exécution d'une application console.
    Par insane_80 dans le forum Windows Forms
    Réponses: 3
    Dernier message: 13/02/2007, 17h52

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo