Tôi đã tạo một định nghĩa trang đơn giản dựa trên cổng xuất bản. Mỗi lần tôi muốn sử dụng mẫu để tạo tuyển tập trang, tôi nhận được thông báo lỗi sau:SharePoint SiteDefinitions
Mẫu bạn đã chọn không hợp lệ hoặc không thể tìm thấy.
Tôi không sử dụng bất kỳ tính năng tùy chỉnh nào, chỉ các tính năng mặc định với trang web xuất bản-def. Bất kỳ gợi ý nào?
Có một bản ghi lỗi nhưng nó chỉ mang lại cho tôi những thông tin trên:
Applying template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080/Platforms/Orders/0000112233".
Failed to get the site template for language 1031, search key 'PalfingerPlatformsOrderRoot'. This warning is expected when provisioning from a custom web template.
Failed to apply template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080/Platforms/Orders/0000112233".
Failed to apply template "PalfingerPlatformsOrderRoot#0" to web at URL "http://datsa0004:8080/Platforms/Orders/0000112233", error The template you have chosen is invalid or cannot be found. 0x81071e44
The template you have chosen is invalid or cannot be found.
CreatePortal failed creating portal webs. 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 Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String& bstrWebTemplate, Int32& plWebTemplateId) at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(String strWebTemplate) at Microsoft.ShareP...
...oint.Publishing.PortalProvisioningProvider.CreatePortal(String xmlFile, SPWeb rootWeb)
Ah! Lỗi sao chép và dán ngu ngốc. Tôi đã tạo một định nghĩa trang web mới dựa trên hiện có trên. Theo MS khuyến cáo ID là> 10000. Nhưng trên thực tế, cả hai định nghĩa trang web đều sử dụng cùng một phạm vi 1000x. Để trang web-def. với cùng một ID 10001. Cảm ơn bạn! – Henrik
không có vấn đề, đôi khi câu trả lời là dễ dàng! – curtisk
các trình soạn thảo như notepad ++ có thể giúp bạn xác định vị trí các mẫu trang web xung đột với công cụ Tìm trong tệp - chỉ cần tìm ID = "1000x" trong tất cả các tệp xml trong% commonprogramfiles% \ Microsoft Shared \ máy chủ web mở rộng \% SPVERSION% \ TEMPLATE \ % LCID% \ XML (lưu ý rằng bạn có thể cần phải thay thế các giá trị khác: 14 và 15 cho SharePoint 2010 và 2013 và một mã miền địa phương kỹ thuật số khác nếu có). – Alexey