如题,在google上狂搜,连篇中文的都没有,真是的,贴到csdn上来,有需要的同志看一下:
帖子内容:
Symptom
- Using the Crystal Reports .NET SDK to create a new instance of a ReportDocument.
- Error: Retrieving the COM class factory for component with CLSID {D7F5D7C3-B06C-4CAC-BC47-A06E66D2EE9B} failed due to the following error: 80000003.
System.Runtime.InteropServices.COMException was unhandled by user code
Message="Retrieving the COM class factory for component with CLSID {D7F5D7C3-B06C-4CAC-BC47-A06E66D2EE9B} failed due to the following error: 80000003."
Source="CrystalDecisions.CrystalReports.Engine"
ErrorCode=-2147483645
StackTrace:
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.CreateRptDoc()
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Initialize()
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at _Default.ConfigureCrystal() in c:/Inetpub/wwwroot/reportingApp/Default.aspx.cs:line 26
at _Default.Page_Load(Object sender, EventArgs e) in c:/Inetpub/wwwroot/reportingApp/Default.aspx.cs:line 17
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException:
Environment
- Crystal Reports 2008, SP2
- Visual Studio 2008
Reproducing the Issue
CrystalDecisions.CrystalReports.Engine.ReportDocument boReportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
Cause
- The {D7F5D7C3-B06C-4CAC-BC47-A06E66D2EE9B} is the GUID for clientdoc.dll.
- The clientdoc.dll COM library has become unregistered on the system.
Resolution
- Go to Start > Run. Then type in:
regsvr32 "C:/Program Files/Business Objects/BusinessObjects Enterprise 12.0/win32_x86/clientdoc.dll"
- Click OK.
- Restart the application server, or the entire server for the change to take effect.