Salut tous, j'ai crée un program qui fonctionne parfaitement sur mon pc, mais il donne ce problem dans tous les autres pc, je comprend que le problem c'est de la COM component qui manques/non enregistrée dans l'autre pc mais j'avait fait tous pour le "fixer" et je pu pas.. j'ai meme aussi cree ce Bat pour m'aider et aussi rien changer.
Aussi c'est une image du problem:
Dll_Fixer.Bat
"""
@echo off
mkdir C:\Windows\Microsoft.NET\Framework\v4.0.30319
mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a
mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089
mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system\v4.0_4.0.0.0__b77a5c561934e089
mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089
mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a
mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Xml\v4.0_4.0.0.0__b77a5c561934e089
mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Core\v4.0_4.0.0.0__b77a5c561934e089
mkdir C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a
copy C:\Users\%username%\Desktop\dll\mscorlib.dll C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
copy C:\Users\%username%\Desktop\dll\Microsoft.VisualBasic.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll
copy C:\Users\%username%\Desktop\dll\system.Windows.Forms.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\system.Windows.Forms.dll
copy C:\Users\%username%\Desktop\dll\system.Drawing.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.Drawing.dll
copy C:\Users\%username%\Desktop\dll\system.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system\v4.0_4.0.0.0__b77a5c561934e089\system.dll
copy C:\Users\%username%\Desktop\dll\system.Runtime.Remoting.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\system.Runtime.Remoting.dll
copy C:\Users\%username%\Desktop\dll\system.Configuration.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.Configuration.dll
copy C:\Users\%username%\Desktop\dll\system.Xml.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Xml\v4.0_4.0.0.0__b77a5c561934e089\system.Xml.dll
copy C:\Users\%username%\Desktop\dll\system.Core.dll C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Core\v4.0_4.0.0.0__b77a5c561934e089\system.Core.dll
Regsvr32.exe /s C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll
Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\system.Windows.Forms.dll
Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.Drawing.dll
Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system\v4.0_4.0.0.0__b77a5c561934e089\system.dll
Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Runtime.Remoting\v4.0_4.0.0.0__b77a5c561934e089\system.Runtime.Remoting.dll
Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\system.Configuration.dll
Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Xml\v4.0_4.0.0.0__b77a5c561934e089\system.Xml.dll
Regsvr32.exe /s C:\Windows\Microsoft.Net\assembly\GAC_MSIL\system.Core\v4.0_4.0.0.0__b77a5c561934e089\system.Core.dll
msg * Done!
"""
Et aussi c'est le problem dans le photo:
"""
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Клас не е регистриран (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) ---> System.Runtime.InteropServices.COMException: Клас не е регистриран (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
at System.Windows.Forms.AxHost.CreateHandle()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.AxHost.EndInit()
at RconBot_v2._00.Conn.InitializeComponent()
at RconBot_v2._00.Conn..ctor()
--- End of inner exception stack trace ---
at RconBot_v2._00.My.MyProject.MyForms.Create__Instance__[T](T Instance)
at RconBot_v2._00.My.MyProject.MyForms.get_Conn()
at RconBot_v2._00.zombie.Timer2_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18063 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Rcon&Ban Tool By Anis v1.20
Assembly Version: 1.2.3.9
Win32 Version: 1.2.4.5
CodeBase: file:///C:/Users/The3Y3/Desktop/In%20Progress/Rcon%26Ban%20Tool%20By%20Anis%20v1.20.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.6.57.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18021 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34245 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
AxInterop.MSWinsockLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/The3Y3/Desktop/In%20Progress/AxInterop.MSWinsockLib.DLL
----------------------------------------
Interop.MSWinsockLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/The3Y3/Desktop/In%20Progress/Interop.MSWinsockLib.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18060 built by: FX45RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
"""
Svp une solution Detaillé, Merci beaucoup.
Partager