The information in this article applies to:
- DOVICO Timesheet
- Windows Vista 64-bit
- Windows Server 2003 64-bit
- Windows Server 2008 64-bit
Symptoms:
Unable to run reports on a Windows 64-bit OS server and the user receives this error below:
not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Cause:
Crystal Reports cannot read the 64-bit .dll of the operating system since it is a 32-bit application.
For Windows Server 2003 64-bit
Resolution:
Enable IIS 6 to run 32-bit applications
- Ensure ASP.NET is allowed in Web Extensions
- Go To Start/Run and type cmd then hit enter.
- Enter the following command:
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs set w3svc/AppPools/Enable32bitAppOnWin64 1
- Register the 32-bit ASP.NET 2.0 to IIS (look in C:\WINDOWS\Microsoft.NET\Framework\v2.0.xxxx) by entering the following command:
aspnet_regiis.exe -i -enable
- Restart the World Wide Web Publishing service.
- Go to your IIS administration console to the Web Service Extensions folder and ensure that asp.net v2.0* (32-bit) is allowed.
- Login to DOVICO Timesheet and you should now be able to print reports.
Warning: Due to limitations in IIS 6 which do not allow 32-bit and 64-bit applications to run simultaneously on the same server the steps above may cause other ASP.NET applications on your machine to stop functioning properly (64-bit only ASP.NET apps may no longer work). Revert IIS 6 back to 64-bit mode if that is the case, see instructions below.
Revert IIS back to 64-bit mode using the command below if necessary:
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
For Windows Server 2008 64-bit & Windows Vista 64-bit
Enable IIS 7 to run 32-bit applications
-
Go to Administrative Tools, Internet Information Services (IIS) Manager
-
Right-click on the DOVICOTimesheet application pool
-
Select Advanced Settings
-
Set 'Enable 32-bit applications' to True
-
Click OK
-
Restart the DOVICOTimesheet application pool
For Windows Server 2008 64-bit with MS Exchange
Please refer to article DV1175