2012-05-03 50 views
0

我正在使用UserProfileManager獲取SharePoint中的用戶配置文件。我編譯MOSS機器上的代碼,然後試圖SP2010的機器上運行它,但隨後拋出一個異常,它無法找到「Microsoft.Office.Server」版本= 12.0.0.0,但現在我的問題是,爲什麼它正在尋找MOSS裝配SP2010的機器上,它拋出當我嘗試創建UserProfileManager的實例時發生異常

錯誤是

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

回答

0

你應該重新您的SharePoint服務器(不基金會!)2010年大會上的代碼。爲此,您應該有SPS2010和VS2010在同一臺機器上。

+0

嗨感謝您的回覆,但請您再解釋一下 –

相關問題