PDA

View Full Version : مشکل خطای برنامه



akbar_online
شنبه 15 تیر 1392, 13:06 عصر
با سلام
برنامه نوشتم که تو سیستم خودم بدون مشکلی اجرا میشه ولی تو یک سیستم دیگه میخوام اجرا کنم خطای زیر میده


************** Exception Text **************
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Retrieving the COM class factory for component with CLSID {C36A6B80-D6A8-4F08-91DD-402E39456FE4} failed due to the following error: 80040154. ---> System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {C36A6B80-D6A8-4F08-91DD-402E39456FE4} failed due to the following error: 80040154.
at Hotel_Management.Form1..ctor() in C:\Users\amini\Documents\Visual Studio 2010\Projects\Hotel_Management\Hotel_Management\Fo rm1.vb:line 10
--- End of inner exception stack trace ---
at Hotel_Management.My.MyProject.MyForms.Create__Inst ance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at Hotel_Management.My.MyProject.MyForms.get_Form1()
at Hotel_Management.LoginForm.LoginForm_Load(Object sender, EventArgs e) in C:\Users\amini\Documents\Visual Studio 2010\Projects\Hotel_Management\Hotel_Management\Lo ginForm.vb:line 55
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at DevComponents.DotNetBar.Office2007RibbonForm.OnLoa d(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at DevComponents.DotNetBar.Office2007RibbonForm.WndPr oc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5466 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Hotel_Management
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/F_A_a/Desktop/Debug/Hotel_Management.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
DevComponents.DotNetBar2
Assembly Version: 8.1.0.6
Win32 Version: 8.1.0.6
CodeBase: file:///C:/Users/F_A_a/Desktop/Debug/DevComponents.DotNetBar2.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Interop.ShamsiDLL
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/F_A_a/Desktop/Debug/Interop.ShamsiDLL.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.

asghar2008
شنبه 15 تیر 1392, 13:37 عصر
سلام

دوست عزیز شما از فایل های Dll مثل ShamsiDLL و DevComponents.DotNetBar2 و...استفاده کردین که نشون میده این فایل در کنار برنامه نیست.

در کامپیوتر خودتون به خوبی اجرا میشه چون تو مسیری که این فایل ها رو ادد کردین برنامه اونارو میخونه.

ولی در کامپیوتر دیگه خطا میده چون اون فایل در کامپیوتر مقصد موجود نیست.شما باید اون فایل هارو به برنامتون اضافه کنید.

akbar_online
شنبه 15 تیر 1392, 14:21 عصر
سلام

دوست عزیز شما از فایل های Dll مثل ShamsiDLL و DevComponents.DotNetBar2 و...استفاده کردین که نشون میده این فایل در کنار برنامه نیست.

در کامپیوتر خودتون به خوبی اجرا میشه چون تو مسیری که این فایل ها رو ادد کردین برنامه اونارو میخونه.

ولی در کامپیوتر دیگه خطا میده چون اون فایل در کامپیوتر مقصد موجود نیست.شما باید اون فایل هارو به برنامتون اضافه کنید.
فایل ها Dll درکنار برنامه هست فایل اجرایی اینجا میزارم
http://www.4shared.com/rar/_gB5kSul/Debug.html

asghar2008
شنبه 15 تیر 1392, 15:00 عصر
درسته !! فایل ها کنار برنامه هست!

شما این خطوط از برنامتون رو دوباره چک کنید:
فرم1 خط 10: Form1.vb

فرم لاگین خط 55 :LoginForm.vb

ببین تو این قسمتا چه کدی نوشتی .ایراد از این قسمتاست.

akbar_online
شنبه 15 تیر 1392, 17:18 عصر
فرم1 خط 10: Form1.vb
Private shms As New ShamsiDLL.ClassShamsi
فرم لاگین خط 55 :LoginForm.vb
Form1.Hide()

Fery666
شنبه 15 تیر 1392, 17:46 عصر
اگر شما فقط فایل اجرایی برنامه با فایل های DLL رو بردین توی یه سیستم دیگه .

پیشنهاد می کنم که توی سیستم خودتون با خود .net یه فایل نصب بسازید چون اینجوری فایلها و مواردی که برای اجرا در یک سیستم دیگه رو میخواد پیدا میکنه و توی اون سیستم نصب میکنه .
اینجوری احتمالا مشکلتون برطرف میشه .