0

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 Microsoft.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.

John Saunders
  • 160,644
  • 26
  • 247
  • 397
user231976
  • 1
  • 1
  • 2

3 Answers3

1

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

Community
  • 1
  • 1
Joao Silva
  • 876
  • 2
  • 8
  • 18
0

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.

Francisco Aquino
  • 9,097
  • 1
  • 31
  • 37
0

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.

Jacobs Data Solutions
  • 4,850
  • 4
  • 33
  • 38