cancel
Showing results for 
Search instead for 
Did you mean: 

CRVS2010 Beta - 80040154 Class not registered exception

Former Member
0 Kudos

Hey guys,

I have an application that generates some pretty basic reports. I have installed the crystal reports .net 4 beta 2 for visual studio 2010 and copied the DLLs into my web site's bin folder. Everything works fine when running locally but when I try to create a report on my production server I get the following exception thrown.

Retrieving the COM class factory for component with CLSID 
{C0D87D96-8D57-4274-AA18-D465E31F901E} failed due to the following error: 
80040154 Class not registered (Exception from HRESULT: 0x80040154 
(REGDB_E_CLASSNOTREG)). 
And here is the stack trace:

[COMException (0x80040154): Retrieving the COM class factory for component with CLSID     
{C0D87D96-8D57-4274-AA18-D465E31F901E} failed due to the following error: 80040154 
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).]
CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +141

[TypeInitializationException: The type initializer for     
'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
view_report.UpdateReport(Object sender, EventArgs e) +120
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112


System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean   includeStagesAfterAsyncPoint) +5563

I haven't done a whole lot with crystal reports so there may be something I am missing, but I had to manually copy the DLLs from my GAC into my applications bin folder because I didn't want to run the installer on production. Everything worked locally when I removed the dll loads from my web.config so my site would look in Bin for any additional dlls but I don't know why it is going wrong.

Anyone have any insight?

I also have installed the runtime for deployment on the server as well to see if that was an issue. Plus the production server possibly has other versions of crystal reports installed for other websites running from it (I can't do anything about that).

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Final Production release is now available. See this thread for more info:

Answers (1)

Answers (1)

former_member188030
Active Contributor
0 Kudos

Hello,

On a basic note 'Class not registered' exception is thrown when the dlls are not registered.

Moving the dlls in the bin folder wont register them. You need to install the runtimes on the production server.

To download the runtimes see this blog.

[/people/blair.wheadon/blog/2010/07/29/crystal-reports-for-visual-studio-2010-beta-2-and-runtimes-now-available|/people/blair.wheadon/blog/2010/07/29/crystal-reports-for-visual-studio-2010-beta-2-and-runtimes-now-available]

Thanks,

Bhushan.

Former Member
0 Kudos

Please read my entire post:

"I also have installed the runtime for deployment on the server as well to see if that was an issue. Plus the production server possibly has other versions of crystal reports installed for other websites running from it (I can't do anything about that)."

former_member188030
Active Contributor
0 Kudos

Try reinstalling the runtimes.

Former Member
0 Kudos

I did. Twice.

former_member188030
Active Contributor
0 Kudos

Is it a 32 bit or 64 bit server?

Wht other CR versions exist on the server? Check the C://Windows/Assembly folder for the versions of the CrystalDecisions.CrystalReports.Engine.dll.

Bhushan.

Former Member
0 Kudos

32 bit server running on XP.

In GAC --

File version: 11.5.9504.480

Description: Crystal Reports 11

And

File version: 12.3.1100.601

Description: Crystal Reports 2008

In GAC_MSIL --

10.2.51014.0, 10.5.1.2285, 11.5.9504.480, 12.3.2000.601, 14.0.0.88

former_member183750
Active Contributor
0 Kudos

Please, please, please. Do read the sticky posts at the top of this forum. If you will be using CRVS 2010, the post [Crystal Reports for Visual Studio 2010 Beta - read before posting| ] in particular.

In part it reads:

The install scripts DO NOT do anything other than install - both runtime msi and setup exe for CRVS2010).

It is expected that no previous versions of Crystal Reports are installed.

Ludek

Former Member
0 Kudos

I read the sticky, can I not ask to see if anyone has found a work around or some kind of solution?

former_member183750
Active Contributor
0 Kudos

Of course you can. However unless I missed something, I believe this is the 1st time you specify that there are for sure other versions of CR on that box and that you are asking for a possible work around or some kind of solution. Knowing the info in the sticky, I'd have put that into the very 1st post to begin with...

In any case, no work-around that we are aware of.

Good luck,

Ludek