Predictor: Creating more than one analysis model for an application

If you need more than one analysis model for a particular application, avoid resetting properties on the IPredictorClient interface on a per-page basis because the only state the PredictorClient object keeps is in the properties that are set on the object and the analysis model currently loaded.

Solution

To create more than one analysis model for an application, use separate instances of the PredictorClient object instead of loading a model on every page. Create the PredictorClient object in the Application context using Microsoft Internet Information Services (IIS) 5.0 in Application_OnStart, and then reuse the object on individual Active Server Pages (ASP) pages.

See Also

PredictorClient Object (Visual C++)

PredictorClient Object (Visual Basic)


All rights reserved.