PDA

View Full Version : سوال: مشكل در اجراي برنامه



remove-me
یک شنبه 07 آذر 1389, 13:35 عصر
سلام دوستان عزيز.
من يه برنامه با 2010 visual studio پابليش كردم روي كامپيوتر خودم به راحتي باز مي شه ولي تو كامپيوتر هاي ديگه ارور زير رو مي ده.


http://www.barnamenevis.org/forum/attachment.php?attachmentid=60942&stc=1&d=1271147173

داخل برنامه از linq و ado.net استفاده كردم.
توي سايت برنامه نويس چيزي پيدا نكردم ولي تو فيدبك ماكروسافت نوشته بود مشكل از نصب نبودن MDAC (براي بانك اطلاعاتي) كه از آدرس زير بايد دريافت كنيد:
http://www.microsoft.com/downloads/en/details.aspx?familyid=78cac895-efc2-4f8e-a9e0-3a1afbd5922e&displaylang=en
دريافت كردم ولي رو كامپيوتر ديگه اين برنامه نصب نمي شه و اررور ويندوز ميده كه نمي تونه رو اون ويندوز نصب شود. ولي required خود ماكروسافت نوشته xp ولي بازم نصب نمي شه. رو همه نسخه هاي ويندوز همين مشكل رو دارد. ممنون ميشم راهنمايي كنيد

dr_jacky_2005
یک شنبه 07 آذر 1389, 17:07 عصر
برنامتون رو میشه بدین؟
یا امکانش نیست!

remove-me
یک شنبه 07 آذر 1389, 19:36 عصر
ممنون بخاطر پاسخگویی. خیر متاسفانه این برنامه رو واسه شرکتی نوشتم اجازه ندارم. انحصاری بود حتما در خدمتتون می ذاشتم. ولی details ارور بصورت زیر است.


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

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
at System.Windows.Forms.UnsafeNativeMethods.CoCreateI nstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
at System.Windows.Forms.AxHost.CreateWithLicense(Stri ng license, Guid clsid)
at System.Windows.Forms.AxHost.CreateInstanceCore(Gui d 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 SMS_Auto_Answering.Form1.InitializeComponent()
at SMS_Auto_Answering.Form1..ctor()
at SMS_Auto_Answering.WelCome.button1_Click(Object sender, EventArgs e)
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)


************** 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
----------------------------------------
Parsis SMS
Assembly Version: 1.0.0.0
Win32 Version: 1.0
CodeBase: file:///C:/Users/gari%26booshi/AppData/Local/Apps/2.0/O43Q00OP.Q7M/66XNME15.9D4/pars..tion_4150d29ae0dedb9b_0001.0000_b9c0dc10e5db f49f/Parsis%20SMS.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
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.1 built by: RTMRel
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.1 built by: RTMRel
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
AxInterop.KYLIXSMSLib
Assembly Version: 5.0.0.0
Win32 Version: 5.0.0.0
CodeBase: file:///C:/Users/gari%26booshi/AppData/Local/Apps/2.0/O43Q00OP.Q7M/66XNME15.9D4/pars..tion_4150d29ae0dedb9b_0001.0000_b9c0dc10e5db f49f/AxInterop.KYLIXSMSLib.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.

remove-me
یک شنبه 07 آذر 1389, 23:55 عصر
کسی از دوستان اگه می تونه یه راهنمایی کوچک کنه خیلی ممنون می شم. مسئله خیلی فوریه

ahrimaneahurai
دوشنبه 08 آذر 1389, 00:32 صبح
شما دات نت 4 رو روی سیستم نصب دارید ؟
دات نت 4 وقتی روی xp نصب میشه برنامه درست اجرا نمیشه اما وقتی روی 7 اجرا شه درسته
شما برنامتون رو روی چند تا 7 امتحان کنید
من یه همچین مشکلی داشتم دات نت 4 که روی xp هست اجرا نمیشه اما روی 7 میشه

remove-me
دوشنبه 08 آذر 1389, 00:44 صبح
روی 4تا windows7 امتحان کردم. انواع edition ها. چه 32 بیتی چه 64 بیتی. شما فکر می کنید اگه به 3.5 برگردونم مشکل حل می شه؟

remove-me
دوشنبه 08 آذر 1389, 00:48 صبح
تو سایت codeproject.net سوال رو مطرح کردم. جواب بدین صورت بود:
The exception message is clear: 'another computer' lacks of a COM component that your computers instead provides.
آدرس سوال: http://www.codeproject.com/Questions/131647/Oops-on-runing-published-program-on-another-pc.aspx

dr_jacky_2005
دوشنبه 08 آذر 1389, 10:27 صبح
مطمئن نیستما
ولی فکر کنم موقع ای که میخواین کامپایل و بیلد کنید،از اون منوهای بالای وی اس،از کمبو باکس، Debug رو انتخاب کنید.
فکر کنم شما میخواین توو حالت Release ران کنید!

remove-me
دوشنبه 08 آذر 1389, 16:35 عصر
ممنون از راهنمایی هاتون. مشکل از یک کامپوننت بود که متاسفانه با اینکه include کرده بودم بازهم ارور می داد. چون رو کامپیوتر فرد مهاطی ریجستر نشده بود. سوال رو بصورت جدید در همین بخش مطرح می کنم. راستی داخل این theme جدید که بروی سایت نصب شده من دکمه تشکر رو پیدا نکردم.