Bonjour à tous,

Je me récupère le maintien d'une app initialement développée en VB6 puis portée en VB.net en gardant l'utilisation des DLL:
Interop.ADODB.DLL
AxInterop.MSWinsockLib.DLL
Interop.MSWinsockLib.DLL

Le problème est qu'a l'éxécution sur certains pc (pas tous...), j'obtiens cette erreur :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
 
Consultez la fin de ce message pour plus de détails sur l'appel du débogage
juste-à-temps (JIT) à la place de cette boîte de dialogue.
 
************** Texte de l'exception **************
System.InvalidOperationException: Une erreur s'est produite lors de la création du formulaire. Pour plus d'informations, consultez Exception.InnerException. L'erreur est*: Classe non enregistrée (Exception de HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG)) ---> System.Runtime.InteropServices.COMException: Classe non enregistrée (Exception de HRESULT : 0x80040154 (REGDB_E_CLASSNOTREG))
   à System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
   à System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
   à System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
   à System.Windows.Forms.AxHost.CreateInstance()
   à System.Windows.Forms.AxHost.GetOcxCreate()
   à System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   à System.Windows.Forms.AxHost.CreateHandle()
   à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   à System.Windows.Forms.AxHost.EndInit()
   à XXXXX.frm_Print.InitializeComponent()
   à XXXXX.frm_Print..ctor()
   --- Fin de la trace de la pile d'exception interne ---
   à XXXXX.My.MyProject.MyForms.Create__Instance__[T](T Instance)
   à XXXXX.My.MyProject.MyForms.get_frm_Print()
   à XXXXX.frm_Std_Datamat.frm_Std_Datamat_Load(Object sender, EventArgs e)
   à System.Windows.Forms.Form.OnLoad(EventArgs e)
   à System.Windows.Forms.Form.OnCreateControl()
   à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   à System.Windows.Forms.Control.CreateControl()
   à System.Windows.Forms.Control.WmShowWindow(Message& m)
   à System.Windows.Forms.Control.WndProc(Message& m)
   à System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   à System.Windows.Forms.Form.WmShowWindow(Message& m)
   à System.Windows.Forms.Form.WndProc(Message& m)
   à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
 
************** Assemblys chargés **************
mscorlib
    Version de l'assembly*: 4.0.0.0
    Version Win32*: 4.8.4180.0 built by: NET48REL1LAST_B
    CodeBase*: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
XXXXX
    Version de l'assembly*: 1.0.0.4
    Version Win32*: 1.0.0.4
    CodeBase*: file://DISKSTATION/home/Temp/bin/xxxxx.exe
----------------------------------------
System.Windows.Forms
    Version de l'assembly*: 4.0.0.0
    Version Win32*: 4.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Version de l'assembly*: 4.0.0.0
    Version Win32*: 4.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Version de l'assembly*: 4.0.0.0
    Version Win32*: 4.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
    Version de l'assembly*: 10.0.0.0
    Version Win32*: 14.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Core
    Version de l'assembly*: 4.0.0.0
    Version Win32*: 4.8.4180.0 built by: NET48REL1LAST_B
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
    Version de l'assembly*: 4.0.0.0
    Version Win32*: 4.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Version de l'assembly*: 4.0.0.0
    Version Win32*: 4.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.ADODB
    Version de l'assembly*: 2.8.0.0
    Version Win32*: 2.8.0.0
    CodeBase*: file://DISKSTATION/home/Temp/bin/Interop.ADODB.DLL
----------------------------------------
Microsoft.VisualBasic.Compatibility
    Version de l'assembly*: 10.0.0.0
    Version Win32*: 14.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic.Compatibility/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.Compatibility.dll
----------------------------------------
Accessibility
    Version de l'assembly*: 4.0.0.0
    Version Win32*: 4.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
AxInterop.MSWinsockLib
    Version de l'assembly*: 1.0.0.0
    Version Win32*: 1.0.0.0
    CodeBase*: file://DISKSTATION/home/Temp/bin/AxInterop.MSWinsockLib.DLL
----------------------------------------
Interop.MSWinsockLib
    Version de l'assembly*: 1.0.0.0
    Version Win32*: 1.0.0.0
    CodeBase*: file://DISKSTATION/home/Temp/bin/Interop.MSWinsockLib.DLL
----------------------------------------
mscorlib.resources
    Version de l'assembly*: 4.0.0.0
    Version Win32*: 4.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Version de l'assembly*: 4.0.0.0
    Version Win32*: 4.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Microsoft.VisualBasic.resources
    Version de l'assembly*: 10.0.0.0
    Version Win32*: 14.8.4084.0 built by: NET48REL1
    CodeBase*: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/v4.0_10.0.0.0_fr_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll
----------------------------------------
 
************** Débogage JIT **************
Pour activer le débogage juste-à-temps (JIT), le fichier de configuration pour cette
application ou cet ordinateur (machine.config) doit avoir la valeur
jitDebugging définie dans la section system.windows.forms.
L'application doit également être compilée avec le débogage
activé.
 
Par exemple*:
 
<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>
 
Lorsque le débogage juste-à-temps est activé, les exceptions non gérées
seront envoyées au débogueur JIT inscrit sur l'ordinateur
plutôt que d'être gérées par cette boîte de dialogue.
J'ai tenté de registerer les DLL avec regsvr32, mais j'obtiens l'erreur :
"le module xxxx.dll a été chargé, mais le point d'entrée DllRegisterSever est introuvable. Vérifier que xxx.dll est un fichier DLL ou OCX valide"

L'app cible les archi X86.

Voila, si vous avez une idée...

Merci