开发者

The template you have chosen is invalid or cannot be found

Exception in frmMPInstall.CreateSite: Microsoft.SharePoint.SPException: The template you have chosen is invalid or cannot be found. ---> System.Runtime.InteropServices.COMException (0x81071E44): The template you have chosen is invalid or cannot be found. at Microsof开发者_开发百科t.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId) at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId) --- End of inner exception stack trace

At the time of Deploying the solution.It shows above error . It happened only in 64 bit processor.


I managed to solve this problem as described here: SharePoint SiteDefinitions


Wild guess warning

SharePoint is targeting the 'Program Files (x86)' folder to get the definition when your files are in the actual 'Program Files' folder or vice-versa. See if you can define those within your Setup.


Yep. Glad I documented this when I ran into it. I consulted my trusty SharePoint decoder ring and came up with the following answer for you:

This error comes from a (COM) method called SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId) located inside the Microsoft.SharePoint.Library namespace. It basically means that you are trying to use a site definition ID that is already in use.

Ex: 10023 MYSITEDEF#0 / 10023 IALREADYEXIST#0

Gotta love those hidden COM objects.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜