Usage Note 34019: An exception error might occur in SAS® Add-In for Microsoft Office when Crystal Xcelsius is invoked
When you invoke Crystal Xcelsius software, a SAS Add-in for Microsoft Office error message might appear:
Unexpected exception occurred in SAS Add-In For Microsoft Office.
Please report this error to your site administrator.
Note: Crystal Xcelsius works with Excel.exe in the background.
The details of the error are as follows:
System.NullReferenceException: Object reference not set to an instance
of an object.at SAS.OfficeAddin.CommandBarManager.InstallUI()
An additional error might appear:
System.Runtime.InteropServices.InvalidComObjectException: COM object
that has been separated from its underlying RCW cannot be used.
To correct the behavior, follow these steps to direct SAS Add-in for Microsoft Office to not load if it is embedded when another application uses Excel:
- Using a text editor, such as Notepad, type the following:
<configuration>
<assemblySettings>
<add key="LoadWhenEmbedded" value="false"/>
</assemblySettings>
</configuration>
- Save the file as SAS.OfficeAddin.dll.config, where SAS Add-in for Microsoft Office is installed, which by default is in C:\Program Files\SAS\Add-In for Microsoft Office.
Important: Do not confuse the SAS.OfficeAddin.dll.config file with the SAS.OfficeAddin.dll file. Do not edit or modify the SAS.OfficeAddin.dll file.
Operating System and Release Information
SAS System | SAS Add-in for Microsoft Office | Microsoft Windows 2000 Professional | 2.1 | | | |
Microsoft Windows XP Professional | 2.1 | | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2009-04-10 14:12:24 |
Date Created: | 2008-11-24 11:42:01 |