PDA

View Full Version : سوال: خطا در اجرای یک فرم در برنامه!



csp90.polite
شنبه 26 بهمن 1392, 15:07 عصر
با سلام
یک برنامه ای نوشتم که وقتی این برنامه رو میبرم رو یک سیستم دیگه، یکی از فرم های برنامه باز نمیشه و این خطا رو میده(عکس خطا ضمیمه هست)

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualBasic.PowerPacks.Vs, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Daneshname.frmAsar.InitializeComponent()
at Daneshname.frmAsar..ctor() in E:\Daneshname\Daneshname\GUI\frmAsar.cs:line 22
at Daneshname.GUI.MainForm.btnAsar_Click(Object sender, EventArgs e) in E:\Daneshname\Daneshname\GUI\MainForm.cs:line 45
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(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)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

116761

اما روی سیستم خودم(سیستمی که برنامه نوشته شده) این خطا رو نمیده!
دوستان اگه راهنمایی کنند ممنون میشم

hamid_hr
شنبه 26 بهمن 1392, 17:30 عصر
ببین توی toolbox یه تب هست به نام visual basic power pack
من فک کنم از این اشیا استفاده کردی
من اینطوری شد این شی ها رو بیخیال شدم درست شد

csp90.polite
یک شنبه 27 بهمن 1392, 16:26 عصر
حمید آقا دمت گرم
یک line بی خودی توی فرم کشیده بودم که از همین visul basic power pack بود!!
کل شی رو بیخیال شدم!
تشکر مرد

علی متقی پور
یک شنبه 27 بهمن 1392, 19:55 عصر
سلام دوست عزیز
میدونم مشکلت حل شده ولی خوبه که بدونی راه حل واقعی چیه
وقتی شما از یک کامپوننت یا یک DLL که روی سیستم خودتون دارید استفاده میکنید این فایل اضافی هم باید همراه برنامتون روی کلاینت هم باشه وگرنه طبیعیه که خطا میده