• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD 2007/2008/2009 DWG Format

    Reply
    Active Member
    Posts: 10
    Registered: ‎10-04-2005

    HOW use VB.net in AUTOCAD 2009

    221 Views, 3 Replies
    06-11-2012 03:34 AM

    When i netload my .dll, I have this message in Autocad 2009

     

    Impossible de charger l'assemblage. Détails de l'erreur:
    System.BadImageFormatException: Impossible de charger le fichier ou l'assembly
    'file:///P:\My Documents\Visual Studio
    2010\Projects\TTELECClassLibrary1\TTELECClassLibrary1\bin\Release\TTELECClassLib
    rary1.dll' ou une de ses dépendances. Cet assembly a été construit par un
    runtime plus récent que le runtime actuellement chargé et ne peut pas être
    chargé.
    Nom du fichier : 'file:///P:\My Documents\Visual Studio
    2010\Projects\TTELECClassLibrary1\TTELECClassLibrary1\bin\Release\TTELECClassLib
    rary1.dll'
       à System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase,
    Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark,
    Boolean throwOnFileNotFound, Boolean forIntrospection)
       à System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence
    assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       à System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence
    securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm,
    Boolean forIntrospection, StackCrawlMark& stackMark)
       à System.Reflection.Assembly.LoadFrom(String assemblyFile)
       à Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)
       à loadmgd()

    AVT : le journal de liaison d'assembly est désactivé.
    Pour activer le journal des échecs de liaison d'assembly, attribuez la valeur 1
    à la valeur de Registre [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD).
    Remarque : une certaine perte de performance est associée à l'enregistrement
    dans le journal des échecs de liaison d'assembly.
    Pour désactiver cette fonctionnalité, supprimez la valeur de Registre
    [HKLM\Software\Microsoft\Fusion!EnableLog].

     

     

    How correct it ?

    Please use plain text.
    *Expert Elite*
    Posts: 6,432
    Registered: ‎06-29-2007

    Re: HOW use VB.net in AUTOCAD 2009

    06-11-2012 03:43 AM in reply to: thierry64

    Hi,

     

    don't load your assemby from a network as there are some specific settings necessary for trustment of network-drives.

    Copy your DLL's to your C:-drive and try to load it from this location.

    And jsut to make sure: Have you set your project to use Framework 2.0 (I think that is necessary for 2009).

     

    - alfred -

    -------------------------------------------------------------------------
    Alfred NESWADBA
    Ingenieur Studio HOLLAUS ... www.hollaus.at
    -------------------------------------------------------------------------
    Please use plain text.
    Active Member
    Posts: 10
    Registered: ‎10-04-2005

    Re: HOW use VB.net in AUTOCAD 2009

    06-22-2012 12:23 AM in reply to: thierry64

    Thanks

     

    Is correct, the problem is the framework.

     

    To AUTOCAD 2010, I must use the framework 3.5. For 2009, I don't no.

     

    In my job, I have only the framework 4 and Autocad 2009 on my computer. This is the problem.

     

    Thanks for your answer

    Please use plain text.
    *Expert Elite*
    Posts: 6,432
    Registered: ‎06-29-2007

    Re: HOW use VB.net in AUTOCAD 2009

    06-23-2012 03:14 AM in reply to: thierry64

    Hi,

     

    >> In my job, I have only the framework 4 and Autocad 2009 on my computer.

    What OS do you have?

    IMHO when you install AutoCAD 2009 there will be Framework 2.0 installed, if you don't find it on your system (so anyone uninstalled it) I think you'll have also troubles with AutoCAD itself then.

     

    - alfred -

    -------------------------------------------------------------------------
    Alfred NESWADBA
    Ingenieur Studio HOLLAUS ... www.hollaus.at
    -------------------------------------------------------------------------
    Please use plain text.