Difference between revisions of "Analytica User FAQs/ADE"

(ADE won't launch from IIS 7. Access Permissions)
Line 1: Line 1:
The Analytica Decision Engine (ADE) is sold as a separate product from Analytica. It allows you to make use of an Analytica model from the backend of a custom application, such as one written in a programming language like a Visual Basic, or from an web application using a technology such as Active Server Pages (ASP).  
+
The Analytica Decision Engine (ADE) is sold as a separate product from Analytica. It allows you to make use of an Analytica model from the backend of a custom application, such as one written in a programming language like a Visual Basic, or from an web application using a technology such as Active Server Pages (ASP).  
  
= Using ADE from Java =
+
= Using ADE from Java =
  
 
The Analytica Decision Engine (ADE) exposes the full functionality of the Analyica Decision Engine with COM and ActiveX Automation programming interfaces (APIs). Calling ADE from a Java program requires a third-party component called a Java-to-COM bridge. There are several such products on the market, such as [http:www.ezjcom.com EZ JCom], [http:j-integra.intrinsync.com J-Integra], [http:www.nevaobject.com Java2Com], [http:danadler.com/jacob JACOB], [http:www.alphaworks.ibm.com/tech/bridge2java Interface Tool for Java], [http:www.jniwrapper.com Comfyj], and many others. Lumina does not have a recommendation on which bridge to use.  
 
The Analytica Decision Engine (ADE) exposes the full functionality of the Analyica Decision Engine with COM and ActiveX Automation programming interfaces (APIs). Calling ADE from a Java program requires a third-party component called a Java-to-COM bridge. There are several such products on the market, such as [http:www.ezjcom.com EZ JCom], [http:j-integra.intrinsync.com J-Integra], [http:www.nevaobject.com Java2Com], [http:danadler.com/jacob JACOB], [http:www.alphaworks.ibm.com/tech/bridge2java Interface Tool for Java], [http:www.jniwrapper.com Comfyj], and many others. Lumina does not have a recommendation on which bridge to use.  
  
We highly recommend the use of ADE 4.0 (as opposed to ADE 3.1), even while it is still in beta, when doing this. Changes to the COM interface in 4.0 increase the interoperability in ways relevant to this integration.
+
We highly recommend the use of ADE 4.0 (as opposed to ADE 3.1), even while it is still in beta, when doing this. Changes to the COM interface in 4.0 increase the interoperability in ways relevant to this integration.  
  
= Cannot instantiate an ADE instance through IIS in an ASP.net application =
+
= Cannot instantiate an ADE instance through IIS in an ASP.net application =
 +
 
 +
The following exception is encountered when attempting to create an instance of ADE in an ASP.NET application:
  
The following exception is encountered when attempting to create an instance of ADE in an ASP.NET application:
 
 
  Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {C1D8F050-CD44-11D1-AEA4-0040054234B1} failed due to the following error: 80070005.
 
  Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {C1D8F050-CD44-11D1-AEA4-0040054234B1} failed due to the following error: 80070005.
However, I can launch ADE (e.g., using AdeTest) from my user account just fine.
 
  
IIS launches COM objects through a special account. This exception is encountered when this special account does not have the required permissions (Local Launch and Local Activation) to create an instance of ADE. The accounts used by different versions of IIS is given below:
+
However, I can launch ADE (e.g., using AdeTest) from my user account just fine.
 +
 
 +
IIS launches COM objects through a special account. This exception is encountered when this special account does not have the required permissions (Local Launch and Local Activation) to create an instance of ADE. The accounts used by different versions of IIS is given below:  
 +
 
 +
IIS 5 : '''{Computer Name}\ASPNET'''
 +
 
 +
IIS 6 and 7 : '''NETWORKSERVICE''' (group) or '''IIS_IUSRS''' (user)
 +
 
 +
IIS 7.5: '''IIS AppPool\DefaultAppPool'''<br>
  
IIS 5 : <<Computer Name>>\ASPNET
+
To set permissions, if using IIS7 do the following:  
IIS 6 and 7 : NETWORKSERVICE or IIS_IUSRS
+
IIS 7.5: IIS AppPool\DefaultAppPool
+
  
 +
#Launch Internet Information Services (IIS) Manager
 +
#In the left-hand side Connections pane, open «your server»→'''Application Pools'''
 +
#Click on the application pool used by your web app, then press '''Advanced Settings...'''
 +
#Find '''Identity'''. Make a note the account name. Is usually NETWORK SERVICE.
  
  In IIS 7 the Windows group named IUSR_IUSRS must have the correct permissions to launch ADE (although this can be configured to a different account/group).  In IIS6 and earlier, IUSR_WPG group must have these permissions.  In each case, the ADE engine will run in the NETWORK SERVICE account.
+
For all, do this:
  
To set permissions, if using IIS7 do the following:
+
#Launch: '''Start→Administrative Tools→Component Services→My Computer→DCOM Config'''  
# Launch Internet Information Services (IIS) Manager
+
# In the left-hand side Connections pane, open «your server»&rarr;'''Application Pools'''
+
# Click on the application pool used by your web app, then press '''Advanced Settings...'''
+
# Find '''Identity'''.  Make a note the account name.  Is usually NETWORK SERVICE.
+
  
For all, do this:
+
#Right click on ''Analytica Decision Engine Local Server 4.2'', select '''Properties'''→Security
# Launch: '''Start&rarr;Administrative Tools&rarr;Component Services&rarr;My Computer&rarr;DCOM Config
+
#Click '''Launch and Activate Permissions'''Customize Edit...  
# Right click on ''Analytica Decision Engine Local Server 4.2'', select '''Properties'''&rarr;Security
+
#'''Add...''' NETWORK SERVICE (or the name in step 4 above) and IUSR_IUSRS (if using IIS7) or IWAM_(computer name) under IIS6  
# Click '''Launch and Activate Permissions'''&rarr; Customize &rarr; Edit...'''
+
#For each of these accounts, check '''Allow...''' ''Local Launch'' and ''Local Activation''.
# '''Add...''' NETWORK SERVICE (or the name in step 4 above) and IUSR_IUSRS (if using IIS7) or IWAM_(computer name) under IIS6
+
# For each of these accounts, check '''Allow...''' ''Local Launch'' and ''Local Activation''.
+

Revision as of 00:55, 30 November 2011

The Analytica Decision Engine (ADE) is sold as a separate product from Analytica. It allows you to make use of an Analytica model from the backend of a custom application, such as one written in a programming language like a Visual Basic, or from an web application using a technology such as Active Server Pages (ASP).

Using ADE from Java

The Analytica Decision Engine (ADE) exposes the full functionality of the Analyica Decision Engine with COM and ActiveX Automation programming interfaces (APIs). Calling ADE from a Java program requires a third-party component called a Java-to-COM bridge. There are several such products on the market, such as [http:www.ezjcom.com EZ JCom], [http:j-integra.intrinsync.com J-Integra], [http:www.nevaobject.com Java2Com], [http:danadler.com/jacob JACOB], [http:www.alphaworks.ibm.com/tech/bridge2java Interface Tool for Java], [http:www.jniwrapper.com Comfyj], and many others. Lumina does not have a recommendation on which bridge to use.

We highly recommend the use of ADE 4.0 (as opposed to ADE 3.1), even while it is still in beta, when doing this. Changes to the COM interface in 4.0 increase the interoperability in ways relevant to this integration.

Cannot instantiate an ADE instance through IIS in an ASP.net application

The following exception is encountered when attempting to create an instance of ADE in an ASP.NET application:

Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {C1D8F050-CD44-11D1-AEA4-0040054234B1} failed due to the following error: 80070005.

However, I can launch ADE (e.g., using AdeTest) from my user account just fine.

IIS launches COM objects through a special account. This exception is encountered when this special account does not have the required permissions (Local Launch and Local Activation) to create an instance of ADE. The accounts used by different versions of IIS is given below:

IIS 5 : {Computer Name}\ASPNET

IIS 6 and 7 : NETWORKSERVICE (group) or IIS_IUSRS (user)

IIS 7.5: IIS AppPool\DefaultAppPool

To set permissions, if using IIS7 do the following:

  1. Launch Internet Information Services (IIS) Manager
  2. In the left-hand side Connections pane, open «your server»→Application Pools
  3. Click on the application pool used by your web app, then press Advanced Settings...
  4. Find Identity. Make a note the account name. Is usually NETWORK SERVICE.

For all, do this:

  1. Launch: Start→Administrative Tools→Component Services→My Computer→DCOM Config
  1. Right click on Analytica Decision Engine Local Server 4.2, select Properties→Security
  2. Click Launch and Activate Permissions→ Customize → Edit...
  3. Add... NETWORK SERVICE (or the name in step 4 above) and IUSR_IUSRS (if using IIS7) or IWAM_(computer name) under IIS6
  4. For each of these accounts, check Allow... Local Launch and Local Activation.
Comments


You are not allowed to post comments.