locked
Crystal Reports for VS 2010 on IIS7 64 bit Windows Server 2008 R2 RRS feed

  • Question

  • User463389887 posted

    Hi,

    We have a couple of web services which are supposed to return a PDF. This PDF is created using Crystal Reports for VS2010.

    We have installed 64 bit CR Runtime for VS2010 on the Windows Server 2008 R2 -64 bit machine and for some reason the Crystal Report wont run on this Serevr. It gives this error :

    "Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."

    Created a separate AppPool for this web application and configured the Identity of the Application Pool to a User which is member of IIS_Users group.

    This user has Write/Read access to the Windows/Temp directory and has the read access to the Crystal Reports assemblies in Program Files\x64 directory.  "C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64"

    Your help is greatly appreciated, I am stuck with this issue for couple of days now and not heading anywhere. Please help.

    Cheers,

    Nachiket

    Friday, February 22, 2013 3:01 PM

Answers

  • User463389887 posted

    Hey Angie,

    Thanks for your reply.

    However, the Application Pool Setting for Allow 32 Application was set to True. We had problems with this setting.

    The problem disappeared when the Setting was False. 

    I was able to reproduce the error by turning On the setting and was able to fix it by turning it Off.

    On this server we have installed the 64 bit Crystal Report Runtime, and the machine is off-course 64 bit, Windows 2008 R2 and the application was build for Any-CPU so I am assuming that even if I set Allow 32bit Applications to True.. it should not matter. Because the entire application needs to access 64 bit assemblies. 

    By the name of the setting "Allow 32 Bit Applications", I assumed that It would Allow for 32 bit assemblies to load over WOW64 not impacting the 64 bit applications at all. And turning this setting to True should not have broke Crystal Reports..

    It really doesn't make much sense. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 27, 2013 5:54 PM
  • User-166373564 posted

    Hi NachiketS

    The problem disappeared when the Setting was False. 

    I was able to reproduce the error by turning On the setting and was able to fix it by turning it Off.

    Thanks for your kind feedback.

    Generally speaking, the Crystal Reports assemblies are inclined to collection of legacy DLLs upon which they are based. In case you have used 32 bit DLLs, so I think you should set "Allow 32 Bit Applications" true.  Perhaps the DLLS you used are all 64 bit, you should set "Allow 32 Bit Applications" false, but I’m not sure about this.

    With kind regards

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 28, 2013 12:20 AM
  • User463389887 posted

    Hi necro,

    No the Crystal Report is not hosted on a shared server. We have a dedicated web server for our application.

    It is Windows Server 2008 R2, 64 Bit and we have installed 64 bit Crystal Reports Runtime for VS2010 on it.

    The Application Pool thats setup with the Application is configured to use Identity of a local account. We have given write Access to the Windows\Temp directory and Read Access to the Crystal Report's Program Files location which have assemblies for CR VS2010.

    The Account also has the Read Access to the Template Location.

    With all this configuration the Crystal Reports were not running and we saw the error message I posted in the question. After the Application pool Setting was changed from "Allow 32 Bit Application" => True to "Allow 32 Bit Application" => False, the error disappeared.

    Cheers,

    Nachiket 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 19, 2013 2:10 AM

All replies

  • User-166373564 posted

    Hi NachiketS

    "Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."

    Please make sure that set the application pool for web application to allow 32-bit assemblies in the IIS Manager on the server,

    Although you use a 64-bit system, this doesn't mean all the referenced assemblies are necessarily 64-bit Crystal Reports assemblies. Many 32-bit DLLs are required by the primarily referenced assembly.

    It means that you must want the 32 bit assembly on a 64-bit system.

    hope it helps you,

    With regards

    Wednesday, February 27, 2013 4:09 AM
  • User463389887 posted

    Hey Angie,

    Thanks for your reply.

    However, the Application Pool Setting for Allow 32 Application was set to True. We had problems with this setting.

    The problem disappeared when the Setting was False. 

    I was able to reproduce the error by turning On the setting and was able to fix it by turning it Off.

    On this server we have installed the 64 bit Crystal Report Runtime, and the machine is off-course 64 bit, Windows 2008 R2 and the application was build for Any-CPU so I am assuming that even if I set Allow 32bit Applications to True.. it should not matter. Because the entire application needs to access 64 bit assemblies. 

    By the name of the setting "Allow 32 Bit Applications", I assumed that It would Allow for 32 bit assemblies to load over WOW64 not impacting the 64 bit applications at all. And turning this setting to True should not have broke Crystal Reports..

    It really doesn't make much sense. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, February 27, 2013 5:54 PM
  • User-166373564 posted

    Hi NachiketS

    The problem disappeared when the Setting was False. 

    I was able to reproduce the error by turning On the setting and was able to fix it by turning it Off.

    Thanks for your kind feedback.

    Generally speaking, the Crystal Reports assemblies are inclined to collection of legacy DLLs upon which they are based. In case you have used 32 bit DLLs, so I think you should set "Allow 32 Bit Applications" true.  Perhaps the DLLS you used are all 64 bit, you should set "Allow 32 Bit Applications" false, but I’m not sure about this.

    With kind regards

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 28, 2013 12:20 AM
  • User1196771204 posted

    Hi Nachiket,

    May I please know where do you host your report? Is that on a shared server?

    Based on the error message you posted here, it looks like the Crystal Report is not properly configured on the server. The followings are the things you need to make sure:

    1. Please make sure the crystal report installed on the server matches the one you used on your code.
    2. Please make sure the crystal report assemblies specified on your web.config matches the one installed on the server
    3. Please make sure the application pool of your site is set to LOCAL SERVICE
    4. You may need to copy the crystalreportviewer folder into your own operating folder
    5. Please make sure you enable read and write permission on your operating folder.

    If you follow all the steps above, your report will certainly work fine. If you still have problems, you need to find a host that supports Crystal Report and I can recommend asphostcentral.com for you in this case.

    Please mark this response as an "answer" if it helps you. Thanks heaps! 

    Thursday, February 28, 2013 2:08 AM
  • User463389887 posted

    Hi necro,

    No the Crystal Report is not hosted on a shared server. We have a dedicated web server for our application.

    It is Windows Server 2008 R2, 64 Bit and we have installed 64 bit Crystal Reports Runtime for VS2010 on it.

    The Application Pool thats setup with the Application is configured to use Identity of a local account. We have given write Access to the Windows\Temp directory and Read Access to the Crystal Report's Program Files location which have assemblies for CR VS2010.

    The Account also has the Read Access to the Template Location.

    With all this configuration the Crystal Reports were not running and we saw the error message I posted in the question. After the Application pool Setting was changed from "Allow 32 Bit Application" => True to "Allow 32 Bit Application" => False, the error disappeared.

    Cheers,

    Nachiket 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 19, 2013 2:10 AM