Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50}


We has following error message after we move our program to production server:

Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50} failed due to the following error: 800700c1.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50} failed due to the following error: 800700c1.

Source Error:

Line 28: 
Line 29: Try
Line 30: Dim oRpt As New ReportDocument()
Line 31:
Line 32: Dim SqlConn As New SqlConnection(Application("ConnStr"))

Source File: D:\inetpub\vhosts\k-link-canada.com\httpdocs\Warehouse\Company\User.aspx.vb Line: 30

Stack Trace:

[BadImageFormatException: Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50} failed due to the following error: 800700c1.]
CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +182

[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
Company_User.LoadReport() in D:\inetpub\vhosts\k-link-canada.com\httpdocs\Warehouse\Company\User.aspx.vb:30
Company_User.Button1_Click(Object sender, EventArgs e) in D:\inetpub\vhosts\k-link-canada.com\httpdocs\Warehouse\Company\User.aspx.vb:74
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102


Our development enviroument is VB 2005 with CR 10.2 and production server is Windows 2003 x64. Please advise.


Answer this question

Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50}

  • SweptSquash

    Did you install the crystal reports runtime on your production server. You need to install the msi found in C:\Program Files\Microsoft Visual Studio 8\Crystal Reports\CRRedist\X64 onto your server


  • tchen777

    After 6 hours of adding and removing references, hot fixes and cold showers I finally found a solution to this error...

    Cause I'm as happy as a pig in sh*t I want to share it with the world (and because there really isn't anything around I found useful regarding this subject neither on the businessobjects forum nor in the newsgroups).

    Errors I got:

    The type initializer for "CrystalDecisions.CrystalReports.Engine.CRPE"
    threw an exception.

    Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50}

    Things I tried:

    All required dll’s where present in the C:\Program Files\Common Files\Business Objects\2.7\Managed folder

    Things I didn’t try but found on the web :

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=642627&SiteID=1

    Run C:\Program Files\Microsoft Visual Studio 8\Crystal Reports\CRRedist\X64\ CRRedist2005_X64.msi

    It worked fine yesterday

    What did I do wrong, more specific what have I been up to the last 24 hours

    What did the trick

    Suddenly I remembered I uninstalled a 2005 project yesterday which included the CrystalDecisionsRedist2005_x86 merge module!

    I re-installed the project kept my fingers crossed when the debugger hit the breakpoint at:

    Private crReportDocument As New ReportDocument

    And cried like a baby when I saw my splash screen!

    It’s strange thought that running ‘C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports\ CRRedist2005_x86.msi’ didn’t fix the problem..

    So ‘uninstalling a project with any kind of merge module can have these side effects’

    Have a good one!

    Mike


  • Joe_D

    Yo Mike,

    As per you suggestion i uninstalled the setup of the project which I have installed previously and reinstalled set project project and everything works. My problem was on development machine and not at the deployment.

    Hope others can sort out same by merely uninstalling and reinstalling the setpup package of thier project.

    Thanks

    Vikram Lashkari


  • adwins04

    We managed to resolve the problem. The problem is due to crystal report does not initialize with x64 configuration, we have to change to x86.

    Step:
    1. Install the crystakreportredist2005_x64.msm
    2. C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\CrystalReports\CRRedist2005_x86.msi
    3. Restart server.

    Please refer to the following link https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=137831&SiteID=1.



  • DiegoSierra

    We have try to re-install few times, but still not successful. Also search for the registry on the machine and it do match with our development machine.


  • TechedRonan

    We did installed the file and the merge modules. It still showing the same error message. Any other suggestions.
  • 0xDEAD

    Mike,

    Thanks for the post after finding the solution. It was dead on for me as well and you saved me a ton of work. I would not have thought to reinstall the application I had uninstalled thirty minutes prior to getting the error message.

    Thanks Again,

    Erik


  • mvid

    It doesn't seem to have installed properly, as errors like that appear when files did not get registered. I would search the registry on your machine to find out which file that is related to, and try registering it on your production machine.
  • Retrieving the COM class factory for component with CLSID {11BD5260-15B6-412D-80DB-12BB60B8FE50}