Se produce una excepción cuando intento crear una instancia de UserProfileManager

I am using UserProfileManager to get user profiles in sharepoint. I compiled the code on MOSS machine and then tried to run it on SP2010 machine but then it threw an exception that it couldnt find 'Microsoft.Office.Server' version= but now my question is why it is looking for MOSS assembly on SP2010 machine

Error which it throws is

  System.IO.FileNotFoundException: Could not load file or assembly
'Microsoft.Office.Server, Version=, Culture=neutral,
publicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the
file specified.File name: 'Microsoft.Office.Server, Version=, Culture=neutral,

preguntado el 03 de mayo de 12 a las 14:05

1 Respuestas

You should recreate you code for SharePoint Server (not Foundation!) 2010 assemblies. For this you should have SPS2010 and VS2010 on the same machine.

contestado el 04 de mayo de 12 a las 07:05

Hi Thanks for replying but Can you please explain it a little more - ahmed masud

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.