糟糕,在另一台PC上运行已发布的程序! [英] Oops on runing published program on another pc!

查看:106
本文介绍了糟糕,在另一台PC上运行已发布的程序!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
我用C#从visual Studio 2010中发布了一个程序.
发布后,我安装了我的程序并运行它.它是精心打开的,没有任何错误和错误.但是当我将其发送到另一台计算机并安装它时,当我单击按钮以转到下一个表格时,第一个表格运行良好,但出现以下错误.

您的应用程序中发生未处理的异常.如果您...等等.

在上述错误的datails中说:

hi to everyone.
I published a program from visual Studio 2010 with C#.
After Publishing i installed my program and run it. it was open carefully without any error and bug. BUT when i Send it to another computer and installed it, First form run good when i click on butten for going to the next form it make below error.

unhandled exception has ocurred in your application. if you ... and so on.

in datails of above error says this:

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.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 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(MouseEventArgs 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.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.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.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_b9c0dc10e5dbf49f/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_b9c0dc10e5dbf49f/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.



我从用户那里发现了这个问题,最好的答案是安装MDAC.
因此,我从Microsoft下载了2.8 sp1版本,并尝试安装该版本,但它表示Windows版本错误. MDAC的必需包括XP,但是它确实安装在Windows XP上.
我尝试在Windows XP和7个32bit和64bit中运行我的程序.但没有区别,并说相同的错误.

我将感谢您的帮助:thumbsup:



I found this problem from users and the best answer is install MDAC.
So i downloaded version 2.8 sp1 from microsoft and try installed that but it said error for version of windows. Required of MDAC include xp but it doesent install on windows xp.
I try to run my progam in windows xp and seven 32bit and 64bit. but not diffren and said same error.

I''ll Thanks for your help :thumbsup:

推荐答案

该异常消息很明确:另一台计算机"缺少您计算机中的COM组件而是提供.
:)
The exception message is clear: ''another computer'' lacks of a COM component that your computers instead provides.
:)


这篇关于糟糕,在另一台PC上运行已发布的程序!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆