阅读:1671回复:1
[求助]程序在其他电脑上无法使用的问题~~
<P>我用的.net2005里的c#开发的winform程序,在其他电脑上使用的时候出现问题。</P>
<P>我安装了runtime后运行程序发现有错误:</P> <P>System.Exception: 错误脚本:<BR>错误信息:System.Exception: 错误脚本:<BR>错误信息:System.Runtime.InteropServices.COMException (0x80040154): 检索 COM 类工厂中 CLSID 为 {AC0E9827-91CB-11D1-8813-080009EC732A} 的组件时失败,原因是出现以下错误: 80040154。<BR> 在 GISManager.Oprationclass.WindowsAPI.GetSymbol(String style, String classname, Int32 id) 位置 F:\数字城管系统\code\GISManager\GISManager\Oprationclass\windowAPI.cs:行号 128<BR> 在 GISManager.commonclass.LayerSymbol.getSymbol(String ServerStyleName, Int32 ServerStyleID, Int32 ShapeType) 位置 F:\数字城管系统\code\GISManager\GISManager\commonclass\LayerSymbol.cs:行号 171<BR> 在 GISManager.commonclass.LayerSymbol.getSymbol(String ServerStyleName, Int32 ServerStyleID, Int32 ShapeType) 位置 F:\数字城管系统\code\GISManager\GISManager\commonclass\LayerSymbol.cs:行号 186<BR> 在 GISManager.commonclass.Layers.UpdateLayerRender(DataView dv, Int32 i, AxMapControl mMapControl, AxMapControl mOVControl, AxPageLayoutControl mPageLayoutControl, Int32 Layerindex) 位置 F:\数字城管系统\code\GISManager\GISManager\commonclass\Layers.cs:行号 1356<BR> 在 GISManager.commonclass.Layers.LoadLayer(IWorkspace mCurWorkspace, AxMapControl mMapControl, AxPageLayoutControl mPageLayoutControl, DataView dv, Int32 hWind, AxMapControl ovMapControl) 位置 F:\数字城管系统\code\GISManager\GISManager\commonclass\Layers.cs:行号 1225<BR> 在 GISManager.commonclass.Layers.LoadLayer(IWorkspace mCurWorkspace, AxMapControl mMapControl, AxPageLayoutControl mPageLayoutControl, DataView dv, Int32 hWind, AxMapControl ovMapControl) 位置 F:\数字城管系统\code\GISManager\GISManager\commonclass\Layers.cs:行号 1237<BR> 在 GISManager.frmMain.frmMain_Load(Object sender, EventArgs e) 位置 F:\数字城管系统\code\GISManager\GISManager\frmMain.cs:行号 150<BR> 在 System.Windows.Forms.Form.OnLoad(EventArgs e)<BR> 在 System.Windows.Forms.Form.SetVisibleCore(Boolean value)<BR> 在 System.Windows.Forms.Control.set_Visible(Boolean value)<BR> 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)<BR> 在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)<BR> 在 System.Windows.Forms.Form.ShowDialog(IWin32Window owner)<BR> 在 System.Windows.Forms.Form.ShowDialog()<BR> 在 GISManager.frmLogin.btnSure_Click(Object sender, EventArgs e) 位置 F:\数字城管系统\code\GISManager\GISManager\frmLogin.cs:行号 33<BR> 在 System.Windows.Forms.Control.OnClick(EventArgs e)<BR> 在 System.Windows.Forms.Button.OnClick(EventArgs e)<BR> 在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)<BR> 在 System.Windows.Forms.Control.WmMouseUp(Message; m, MouseButtons button, Int32 clicks)<BR> 在 System.Windows.Forms.Control.WndProc(Message; m)<BR> 在 System.Windows.Forms.ButtonBase.WndProc(Message; m)<BR> 在 System.Windows.Forms.Button.WndProc(Message; m)<BR> 在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message; m)<BR> 在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message; m)<BR> 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)<BR></P> <P>我在出错电脑里找了下发现注册表中缺少esriFramework这个系列的注册项,而且安装好的com文件夹里面也没有找到相应的esriFramework.olb。</P> <P>在我本机上注册表和com文件夹里面找到了相应的esriFramework.olb</P> <P>我把程序铐过去用regsvr32注册了下,发现注册表中还是没有这个注册项而且程序依旧出错。请问如何才能注册起来或者需要安装什么程序?runtime我用的是默认安装。望各位大侠指点~~~~</P> |
|
1楼#
发布于:2008-02-15 09:31
<P>原来要装desktop才能有,不知道能否不安装desktop就直接有的方法,比如补丁?</P>
|
|