在EG中打开表或者运行代码时,EG报错退出,如下错误:
----------------------------------------------------------------------------------
System.ComponentModel.Win32Exception
RPC 服务器不可用。
------------------------------ Technical Information Follows ------------------------------
[System.Drawing]
RPC 服务器不可用。
----------------------------------------------------
at System.Drawing.Printing.PrinterSettings.get_InstalledPrinters()
at SAS.EG.DataGrid.DataGridClass.CanPrint()
at SAS.EG.ProjectElementViews.DataView.get_CanPrintPreview()
at SAS.EG.SEGuide.MainForm.UpdatePrintCommands()
at SAS.EG.SEGuide.MainForm.OnUpdateMenuItems()
at SAS.EG.SEGuide.MainForm.OnApplicationIdle(Object sender, EventArgs args)
at System.Windows.Forms.ThreadContext.System.Windows.Forms.UnsafeNativeMethods+IMsoComponent.FDoIdle(Int32 grfidlef)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at SAS.EG.SEGuide.App.Startup(String[] args)
at SAS.EG.SEGuide.App.Main(String[] args)System.ComponentModel.Win32Exception
RPC 服务器不可用。
------------------------------ End of Technical Information ------------------------------
解决:
启动RPC服务
启动printer pool服务
如上2服务都能正常启动,则问题即可解决