Excel Functions from ADE
The Issue
Excel spreadsheet functions when invoked from an ADE Application through IIS seem to hang when ADE tries to bind to an instance of an Excel COM Object. This issue seems to arise because the user invoking Excel COM Objects (by default NETWORK SERVICES) does not have enough permissions. Two possible solutions are provided below for this issue.
The Fix
- Create a new standard user. E.g.
ExcelRunner
with a password. - Set the Excel COM Objects to be invoked by this newly created user instead of the default Launching User.
- Launch DCOM Config: Start → Administrative Tools → Component Services → Computers → My Computer → DCOM Config.
- Note: If you are running ADE 32-Bit on a Windows 64-Bit machine run the command Start → Run → mmc comexp.msc /32
- Right click on Microsoft Excel Application and then on Properties.
- Click on the Identity tab.
- Choose "This user." as the account to run Excel Applications and type in the username and password of the new account.
- Click OK.
- Launch DCOM Config: Start → Administrative Tools → Component Services → Computers → My Computer → DCOM Config.
- Give the new user Read/Write permission on the folder with the Excel file.
Alternative Fix
- Navigate to the folder given below:
- Windows 64 Bit:
C:\Windows\SysWOW64\config\systemprofile\
- Windows 32 Bit:
C:\Windows\System32\config\systemprofile\
- Windows 64 Bit:
- Create directory Desktop
- Give the NETWORK SERVICES user Read/Write permission on the Desktop folder.
- Give the NETWORK SERVICES user Read/Write permission on the AppData folder in the same directory.
- Give the NETWORK SERVICES user Read/Write permission on the folder with the Excel file.
See Also
Comments
Enable comment auto-refresher