Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sharepoint 您选择的模板无效或找不到_Sharepoint - Fatal编程技术网

Sharepoint 您选择的模板无效或找不到

Sharepoint 您选择的模板无效或找不到,sharepoint,Sharepoint,frmMPInstall.CreateSite中出现异常:Microsoft.SharePoint.SPEException:您选择的模板无效或找不到。-->System.Runtime.InteropServices.COMException(0x81071E44):您选择的模板无效或找不到。位于Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(字符串bstrUrl、字符串和bstrWebTemplate、

frmMPInstall.CreateSite中出现异常:Microsoft.SharePoint.SPEException:您选择的模板无效或找不到。-->System.Runtime.InteropServices.COMException(0x81071E44):您选择的模板无效或找不到。位于Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(字符串bstrUrl、字符串和bstrWebTemplate、Int32和plWebTemplateId)的Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(字符串bstrUrl、字符串和bstrWebTemplate、Int32和plWebTemplateId)——内部异常堆栈跟踪的结束

在部署解决方案时。它显示上述错误。 它只发生在64位处理器中。

胡乱猜测警告


SharePoint的目标是“Program Files(x86)”文件夹,以便在文件位于实际的“Program Files”文件夹中时获取定义,反之亦然。看看是否可以在设置中定义这些内容。

是的。很高兴我在遇到它时记录了这一点。我咨询了我信任的SharePoint解码环,并为您提供了以下答案:

此错误来自位于Microsoft.SharePoint.Library命名空间内名为SPRequestInternalClass.ApplyWebTemplate(字符串bstrUrl、字符串和bstrWebTemplate、Int32和plWebTemplateId)的(COM)方法。这基本上意味着您正在尝试使用已经在使用的站点定义ID

例:10023 MYSITEDEF#0/10023我已存在#0


我喜欢那些隐藏的COM对象。

我设法解决了这个问题,如下所述: