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

C# Discussion :

MSHTLM bug outside visual studio hosting


Sujet :

C#

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Avril 2009
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2009
    Messages : 4
    Par défaut MSHTLM bug outside visual studio hosting
    Hi, i'm in trouble with using mshtml.dll for parsing html pages in a .net console application.....

    My application work perfectly when lauched in release mode inside Visual Studio 2008, but as soon as i directly lauch the generated executable from windows explorer i get the following exception from a method call to mshtml api: La référence d'objet n'est pas définie à une instance d'un objet (The object reference is not defined as an object instance).....

    Did you know the difference between an application hosted inside visual studio an the one lauched from explorer, or the difference of comportment of mshtml in these both cases.....

    Many thanks in advanced for your help and your replies.

    Have a nice day.

  2. #2
    Max
    Max est déconnecté
    Expert confirmé

    Avatar de Max
    Homme Profil pro
    Artisan développeur
    Inscrit en
    Mai 2007
    Messages
    2 954
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France, Pyrénées Atlantiques (Aquitaine)

    Informations professionnelles :
    Activité : Artisan développeur
    Secteur : Industrie

    Informations forums :
    Inscription : Mai 2007
    Messages : 2 954
    Par défaut
    Hi.

    I think that when you try to launch your application from windows explorer, it doesn't find your mshtml.dll. So you can try to:
    • copy the dll in the same folder as your exe
    • or directly in your IDE, check your dll's properties and test the various options to be sure that it will always be copied in your release / debug directory

    The thing you have to remember: if you use an external dll in your application, you always have to deploy both your exe and your dlls.

    Regards

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Avril 2009
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Avril 2009
    Messages : 4
    Par défaut
    Thank for your replie, but mshtml.dll is well accessed by my application, it throw this exception on a call to getattribute method of ihtmlelement object.... when exploring elements content and innerhtml it seems it doesn't parse all my page content when lauched outise of vs but when launched in vs hosting on the same page file tada......it work great......very very strange......

Discussions similaires

  1. Microsoft Visual Studio Bug bizarre
    Par bobo034 dans le forum Débuter
    Réponses: 11
    Dernier message: 28/08/2008, 23h29
  2. Visual Studio: bug de compil
    Par Gorgo13 dans le forum C++
    Réponses: 2
    Dernier message: 07/08/2008, 17h01
  3. Bug Visual studio ?
    Par RAPTISTA dans le forum VB.NET
    Réponses: 2
    Dernier message: 03/06/2008, 15h30
  4. Bug Visual studio, plus accès à des classes de App_code
    Par tortuegenie dans le forum ASP.NET
    Réponses: 1
    Dernier message: 20/05/2008, 09h26
  5. Bug de Visual Studio
    Par sandre dans le forum Visual Studio
    Réponses: 3
    Dernier message: 24/08/2007, 18h20

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