Friday, February 17, 2012

Create DataMiningStructure Continued

When I add a referrence to

Imports Microsoft.AnalysisServices.AdomdClient

Imports Microsoft.AnalysisServices.AdomdClient.AdomdConnection,\

Because I need the for an adomd connection

I receive the following problem

'MiningStructre' is ambiguous, imported from the namespaces or types
'Microsoft.AnalysisServices.AdomdClient', 'Microsoft.AnalysisServices'


with any Mining structure declaration like Dim m_ms As MiningStructure

Your project seems to contain a reference to both Microsoft.AnalysisServices.dll (AMO -- Analysis Management Objects) AND Microsoft.AnalysisServices.AdomdClient(Adomd.Net). Both these libraries contain a Mining Structure object, but they are intended for different purposes.

An AMO Mining Structure allows an administrator to tweak any properties of a mining structure in order to deploy it on a server

An Adomd.Net Mining Structure is a simpler read-only object, which allows any user with certain permissions on the server to inspect the properties of an existing mining structure.

Consider one of the following:

- use only the library that is necessary for your task, i.e. either AMO (for administrative tasks) or Adomd.Net (for querying tasks plus some modeling tasks)

- use a qualified name in defining your obejcts:

Dim m_ms as Microsoft.AnalysisServices.MiningStructure or

Dim m_ms as Microsoft.AnalysisServices.AdomdClient.MiningStructure

No comments:

Post a Comment