迁移包时未导入代码

时间:2012-03-28 15:48:32

标签: sharepoint import migration assemblies

我正在将我的所有SharePoint 2007解决方案升级到2010.我正在使用“导入SharePoint解决方案包”。它看起来并不像每个用户控件(ascx.cs)导入后面的代码,只有每个ascx文件。 尝试通过Visual Studio进行部署时,我收到此错误,并想知道丢失的代码是否是原因:

Error   18  Error occurred in deployment step 'Add Solution': Failed to load receiver assembly "MEMS.Internet.CommonControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f2e7ac152a7fa3b" for feature "WspImportProject1_Feature1" (ID: e3960e6f-9f48-4e8c-a9ba-bdf25e296757).: System.IO.FileNotFoundException: Could not load file or assembly 'MEMS.Internet.CommonControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f2e7ac152a7fa3b' or one of its dependencies. The system cannot find the file specified.
File name: 'MEMS.Internet.CommonControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7f2e7ac152a7fa3b'
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

        0   0   WspImportProject1

0 个答案:

没有答案