Я обновляю все свои решения 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