on 10-20-2010 3:31 PM
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.