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 :

Exeption COMExeption n'a pas été gérée


Sujet :

VB.NET

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Homme Profil pro
    Inscrit en
    Novembre 2012
    Messages
    43
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Maroc

    Informations forums :
    Inscription : Novembre 2012
    Messages : 43
    Par défaut Exeption COMExeption n'a pas été gérée
    salut
    j'ai une application vb.net deployé depuis quelque mois , il marchait bien, mais depuis hier un message d'erreur s'affiche qund j'appel un document word ou excel"
    voila l'erreur :
    La récupération de la fabrique de classes COM pour le composant avec le CLSID {000209FF-0000-0000-C000-000000000046} a échoué en raison de l'erreur suivante : 80040154 Classe non enregistrée (Exception de HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG)).
    merci pour votre aide

  2. #2
    Inactif  

    Homme Profil pro
    Développeur .NET
    Inscrit en
    Janvier 2012
    Messages
    4 903
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 68
    Localisation : Canada

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2012
    Messages : 4 903
    Billets dans le blog
    36
    Par défaut
    Bonjour,

    Comme je n'ai pas de boule de cristal, que tu ne fournis pas de code et que le devin de service est en congé-maladie pour cause de surmenage, je suis allé à la pêche en donnant le CLSID en pâture au moteur de recherche de MSDN.

    https://social.msdn.microsoft.com/Se...mark=true&ac=4

  3. #3
    Modérateur
    Avatar de Sankasssss
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Novembre 2006
    Messages
    1 842
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : Administration - Collectivité locale

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 842
    Par défaut
    Bonjour,

    Faite plutôt les recherches sur le HRESULT, moi perso je rechercherais 0x80040154 interop
    - http://stackoverflow.com/questions/9...p-from-asp-net
    Make sure that your application pool is either 32 bit (or supports 32 bit apps) or your COM control supports 64 bit apps. Most likely, your native COM library is 32bit and your pool runs a 64 bit worker by default, which is unable to load 32bit COM dll.
    - http://www.theogray.com/blog/2009/10...64-bit-windows
    Solution: Go into the Project Properties, Compile tab and click "Advanced Compile Options...". Change "Target CPU" to x86, click OK, save and try again.
    - http://stackoverflow.com/questions/2...not-registered
    I had the same problem trying to build and run a .NET application on Windows 7 x64 that called interop.domino.dll, which is 32 bit only.

    To resolve, I recompiled the .NET application to run specifically as x86 when run on x64 operating systems.

    I was using Visual Studio 2010 Express Edition which is trickier to target specifically for x86 platforms than the paid for versions.

    The solution was:

    Click TOOLS > OPTIONS > PROJECTS AND SOLUTIONS
    Check the box "Show advanced build configurations" and click OK
    Click TOOLS > SETTINGS > check EXPERT SETTINGS to see the build configuration manager
    Click BUILD > CONFIGURATION MANAGER select the platform dropdown to X86 and click CLOSE
    Now rebuild the project

Discussions similaires

  1. Réponses: 2
    Dernier message: 08/03/2008, 09h54
  2. L'exception COMException n'a pas été gérée
    Par loverdev dans le forum VB.NET
    Réponses: 5
    Dernier message: 04/01/2008, 12h25
  3. L'Exception COMException n'a pas été gérée
    Par jerome71300 dans le forum Windows Forms
    Réponses: 2
    Dernier message: 05/11/2007, 11h27
  4. Réponses: 7
    Dernier message: 24/06/2007, 13h19
  5. L'exception OleDBException n'a pas été gérée
    Par neo62matrix dans le forum VB.NET
    Réponses: 2
    Dernier message: 10/05/2007, 11h27

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