Difference between revisions of "Analytica User FAQs/ADE"

(Finding the special account)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
[[Category: FAQ]]
 +
[[Category: Analytica Decision Engine]]
 +
 
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.
+
 
+
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 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 following exception is encountered when attempting to create an instance of ADE in an ASP.NET application:
+
== Cannot instantiate an ADE instance through IIS 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.
+
The following exception is encountered when attempting to create an instance of ADE in an ASP.NET application, however, I can launch ADE (e.g., using AdeTest) from my user account just fine.  
  
However, I can launch ADE (e.g., using AdeTest) from my user account just fine.  
+
:<code>''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.''</code>
  
 
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 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:  
Line 19: Line 18:
 
IIS 5: '''{Computer Name}\ASPNET'''  
 
IIS 5: '''{Computer Name}\ASPNET'''  
  
IIS 6 and 7: '''NETWORKSERVICE''' (group) or '''IIS_IUSRS''' (user)  
+
IIS 6 and 7: '''NETWORKSERVICE''' (identity) or '''IIS_IUSRS''' (user)  
  
IIS 7.5: '''IIS AppPool\DefaultAppPool'''<br>  
+
IIS 7.5: '''ApplicationPoolIdentity '''(identity)&nbsp; or '''IIS AppPool\DefaultAppPool''' (user)<br>  
  
== Setting the permission for the special account ==
+
=== Setting the permission for the special account ===
  
#Launch: '''Start→Administrative Tools→Component Services→My Computer→DCOM Config'''
+
#Launch: '''Start→Administrative Tools→Component Services→My Computer→DCOM Config'''  
##Note: If you are running ADE 32-Bit on a Windows 64-Bit machine run the command '''mmc comexp.msc /32''' instead of the above step.
+
#*''Note'': If you are running ADE 32-Bit on a Windows 64-Bit machine run the command '''Start''' &gt; '''Run''' &gt; ''''mmc comexp.msc /32''''
 
#Right click on ''Analytica Decision Engine Local Server 4.4'', select '''Properties'''→Security  
 
#Right click on ''Analytica Decision Engine Local Server 4.4'', select '''Properties'''→Security  
 
#Click '''Launch and Activate Permissions'''→ Customize → Edit...  
 
#Click '''Launch and Activate Permissions'''→ Customize → Edit...  
#'''Add...''' NETWORK SERVICE (or the name in step 4 above) and IUSR_IUSRS (if using IIS7) or IWAM_(computer name) under IIS6
+
#'''Add...''' the appropriate account depending on your version of IIS.
#For each of these accounts, check '''Allow...''' ''Local Launch'' and ''Local Activation''.
+
#For this account, check '''Local Launch''' and '''Local Activation''' permissions
 +
#Click OK&nbsp;or Apply to save the permission changes.

Latest revision as of 19:52, 18 March 2016


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.

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, however, I can launch ADE (e.g., using AdeTest) from my user account just fine.

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.

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 (identity) or IIS_IUSRS (user)

IIS 7.5: ApplicationPoolIdentity (identity)  or IIS AppPool\DefaultAppPool (user)

Setting the permission for the special account

  1. Launch: Start→Administrative Tools→Component Services→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'
  2. Right click on Analytica Decision Engine Local Server 4.4, select Properties→Security
  3. Click Launch and Activate Permissions→ Customize → Edit...
  4. Add... the appropriate account depending on your version of IIS.
  5. For this account, check Local Launch and Local Activation permissions
  6. Click OK or Apply to save the permission changes.
Comments


You are not allowed to post comments.