Last post Dec 06, 2010 06:45 PM by pauliephonic
Apr 30, 2010 08:11 AMemail@example.com|LINK
Hope someone could help me...
I have a Vb.NET Web app working nicely on : Windows XP SP3, Visual Studio 2008, IIS 5.1, Crystal Reports 2008.
Recently I installed Windows 7- 64bits on one of my machines and happily installed IIS 7.5, Visual Studio 2008, Crystal Reports 2008. Then I copied there my Web app, configured IIS and F5 my app. This didn't work. I found out it worked fine by right clicking
on Visual Studio 2008 + run as administrator so I did so.
My app worked nicely except when asking to produce a Crystal Reports document running on IIS. This gave me this error :
An error has occurred while attempting to load the Crystal Reports runtime.
Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.
Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to
http://www.businessobjects.com/support for more information.
However, when using the ASPNET developpment server (Solution Explorer, right clik, Property pages, start options, Use default web server), I had no problem at all, my crystal reports sprung into live.
I know the difference between using ASPNET Developpment Server instead of IIS is that with the former my pages run in the context of the user logged (me, I'm domain admin you bet) ; when using IIS, ASPNET run under the context of a special user, for IIS
7.5 it's DefaultAppPool.
I gave IIS APPPOOL\DefaultAppPool admin rights everywhere I could think it could be remotely necessary. Nothing changed.
I changed the identity of the DefaultAppPool from AppPoolIdentity to me (my personal account) then I added these lines on my app code just to seewho was running my app :
Session("userASPNET") = System.Security.Principal.WindowsIdentity.GetCurrent.Name
Session("userIIS") = HttpContext.Current.User.Identity.Name
And unexpectly I got exactly the same users when using ASPNET Developpment Server than when using IIS. But as I said, only when using ASPNET Developpment Server did my Crystal reports appear. When using IIS, my debug stops when it must instanciate a reportDocument
( Dim crDonneesEtuds1 As New ReportDocument) and the error message was "The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception" and the error page is always :
I really don't know what to do next.
I read some people had the same problem when using a 64 bits PC and they worked it out by telling Visual Studio 2005 to compile 32bits. But Visual Studio 2008 doesn't give you this option.
I tried to install Visual Studio 2010 but it's worse because, as I just learned, VS 2010 doesn't have CR at all.
Please any idea ?????
Thank you very much for reading my post, we are planning to migrate our machines to W7 and if I can't find the problem I will had to switch to another product, perhaps SQL Server reporting services.
And I keep thinking it has to be a little config problem that is giving me all this pain. How otherwise to explain I can produce my CR2008 documents on ASPNET Developpment Server????
I asked Crystal Reports, they just told me CR 2008 works on W7....I know that.
I posted this question 2 days ago on the Visual Studio/CR forum, they told me to came here.
Aug 10, 2010 06:24 AM|Culme|LINK
I assume you already got this fixed, but I thought I'd reply with a suggestion that might help others. I had similar problems today, and finally got Crystal Reports to work on my 64 bit Win7 machine by changing a setting in the IIS manager.
What I did was to edit the advanced settings for the application pool that was being used to run my app, and change "Enable 32-Bit Applications" to "True" (Default was "False").
HTH / Culme
Sep 20, 2010 05:35 AM|OXL|LINK
the advice to "Enable 32-Bit Applications" in IIS crtainly did the trick for me. You have really helped me! Thanks.
Sep 20, 2010 07:24 AM|Culme|LINK
Thanks for taking the time to say thanks. I'm having a rather bad day, and some positive feedback was exactly what I needed! ;-)
I'm glad it helped you.
Best regards / Culme
Dec 06, 2010 06:45 PM|pauliephonic|LINK
Can confirm that this did the trick for me as well.