Skip to content

Commit 9223110

Browse files
authored
Schema namespace incorrect
Example has `<webPart xmlns="https://schemas.microsoft.com/WebPart/v3">`, however this fails in with an incorrect namespace error. Correct value should `<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">`. With the http*s* namespace the example will return the following error: ``` Web Part Error: Cannot recognize the XML namespace of this Web Part. Correlation ID: 751853a0-d0d4-1000-5e8e-ce46b644d262. ```
1 parent 4048c37 commit 9223110

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/sp-add-ins/add-a-web-part-to-a-page-in-a-sharepoint-hosted-sharepoint-add-in.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ In this article, you add a web part to the default page of the Employee Orientat
3232
1. In the **File** element, add a child **AllUsersWebPart** element, and set its **WebPartZoneID** to the ID of the web part zone that you created on the page. The file's contents should now look like the following. This markup tells SharePoint to insert an **AllUsersWebPart** into the web part zone that is named "HomePage1".
3333

3434
```xml
35-
<Elements xmlns="https://schemas.microsoft.com/sharepoint/">
35+
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
3636
<Module Name="Pages">
3737
<File Path="Pages\Default.aspx" Url="Pages/Default.aspx" ReplaceContent="TRUE" >
3838
<AllUsersWebPart WebPartZoneID="HomePage1" WebPartOrder="1">
@@ -59,7 +59,7 @@ In this article, you add a web part to the default page of the Employee Orientat
5959
1. Add the following **webPart** markup as a child of the **webParts** element. This markup adds an **XsltListViewWebPart** and tells the web part to show the **New Employees in Seattle** list. Note that the **ViewContentTypeId** property value is just `0x`, not the actual ID of the **NewEmployee** content type.
6060

6161
```xml
62-
<webPart xmlns="https://schemas.microsoft.com/WebPart/v3">
62+
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
6363
<metaData>
6464
<type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart,
6565
Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral,

0 commit comments

Comments
 (0)