2012-05-03 51 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

嗨感谢您的回复,但请您再解释一下 –

相关问题