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

Windows Forms Discussion :

Problème avec Framework [Débutant]


Sujet :

Windows Forms

  1. #1
    Membre confirmé
    Homme Profil pro
    Administrateur systèmes et réseaux
    Inscrit en
    Mars 2015
    Messages
    99
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 33
    Localisation : Suisse

    Informations professionnelles :
    Activité : Administrateur systèmes et réseaux

    Informations forums :
    Inscription : Mars 2015
    Messages : 99
    Par défaut Problème avec Framework
    Bonjour

    J'ai développer une application qui fonctionne avec une DLL Erp Connect pour prendre des données depuis SAP.

    Ça marche tip-top si je compile en .Net Framework 4.0, avec la référence de la DLL ERPConnect 4.0, et la DLL intégré au projet 4.0, de plus j'ai fait ça :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
            {
                using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("BTime.ERPConnect40.dll"))
                {
                    byte[] assemblyData = new byte[stream.Length];
                    stream.Read(assemblyData, 0, assemblyData.Length);
                    return Assembly.Load(assemblyData);
                }
     
            }
    Aujourd'hui je veux passer mon programme en Framework 4.5.2
    J'intègre donc la DLL 4.5 d'ERP Connect, je change le logiciel pour compiler en 4.5.2, sur mon PC en Win10 ça marche nickel, mais sur un PC en Seven avec Framework 4.5.2 installé j'obtiens une erreur à la connexion (utilisation de la DLL ERPConnect ?) le logiciel se lance bien mais plante à la connexion avec SAP .

    Voici l'observateur d'événements
    The description for Event ID 1000 from source Application Error cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    Btime.exe
    1.0.0.0
    56e7c36e
    KERNELBASE.dll
    6.1.7601.19135
    56a1c680
    e0434352
    000080d7
    ef8
    01d17e9286752f7b
    C:\BTime\Btime.exe
    C:\Windows\system32\KERNELBASE.dll
    cf02c45c-ea85-11e5-8ad9-000bab66d982

    The handle is invalid
    The description for Event ID 1026 from source .NET Runtime cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    Application: Btime.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.IO.FileLoadException
    Stack:
    at BTime.MainForm.ConnectSAP(System.String)
    at BTime.MainForm.LoadBadge(BadgeRead)
    at BTime.MainForm.MyReader_NewMediaRead(BadgeRead)
    at DesktopReaderControl.ReaderControl.(ChipType, System.String, Int32, Int32)
    at DesktopReaderControl.ReaderControl+..()
    at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Threading.ThreadHelper.ThreadStart()


    The handle is invalid
    Qui peut m'aider ? Merci.

  2. #2
    Membre confirmé
    Homme Profil pro
    Administrateur systèmes et réseaux
    Inscrit en
    Mars 2015
    Messages
    99
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 33
    Localisation : Suisse

    Informations professionnelles :
    Activité : Administrateur systèmes et réseaux

    Informations forums :
    Inscription : Mars 2015
    Messages : 99
    Par défaut
    J'ai mit la DLL ERPConnect45 dans le même dossier que l'exe et c'est bon.
    Bizarre j'avais pas besoin en .net 4.0

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Problème avec framework Prado
    Par constant_op dans le forum ASP.NET MVC
    Réponses: 2
    Dernier message: 14/12/2012, 00h16
  2. Réponses: 6
    Dernier message: 04/01/2009, 20h37
  3. Réponses: 6
    Dernier message: 16/09/2008, 20h35
  4. Problème avec le Tutoriel Débuter avec Zend Framework
    Par ZIED dans le forum Zend Framework
    Réponses: 4
    Dernier message: 21/12/2007, 19h46
  5. Problème avec l'install du framework 3 ?
    Par Myth_Titans dans le forum Framework .NET
    Réponses: 2
    Dernier message: 01/01/2007, 14h49

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