When writing a MDX expression inside a role , i`ve encountered a problem when checking the syntax. When you click on the check syntax button , an error window appears saying it cannot find the assembly msmgdsrv .
A workaround to this problem is to edit the Ssms.exe.config file in Analysis Services .
You can find this file on the path
C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE
Make sure you edit this file as an Administrator.
Inside the file look for the line
<codeBase version=”9.0.0.0″ href=”msmgdsrv.dll”/>
and change the href value with the absolute path of the msmgdsrv.dll file , typically it can be found at
C:\Program Files (x86)\Microsoft Analysis Services\AS OLEDB\10\msmgdsrv.dll
the file should look like this:
<configuration>
<runtime>
<assemblyBinding xmlns=”urn:schemas-microsoft-com:asm.v1″>
<probing privatePath=”PublicAssemblies;PrivateAssemblies”/>
<dependentAssembly>
<assemblyIdentity name=”msmgdsrv” publicKeyToken=”89845dcd8080cc91″ />
<codeBase version=”9.0.0.0″ href=”C:\Program Files (x86)\Microsoft Analysis Services\AS OLEDB\10\msmgdsrv.dll”/>
</dependentAssembly>
</assemblyBinding>
<legacyUnhandledExceptionPolicy enabled=”1″/>
<newComVTableLayout enabled=”true” />
<generatePublisherEvidence enabled=”false”/>
</runtime>
</configuration>
Try checking the MDX syntax , it should be successful.