I put a PeopleEditor control within an .aspx web page in a web site. My web
site has a reference to Microsoft.SharePoint. I do not do anything to or with
the PeopleEditor control - I just want to render it. When I try to render the
page, I receive a 'Object reference not set to an instance of an object' error.
Here is the html for this page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
<%@ Register Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c"
Namespace="Microsoft.SharePoint.WebControls" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<cc1:PeopleEditor ID="PeopleEditor1" runat="server" SelectionSet="User"
AllowEmpty="false" Width="350px" />
</div>
</form>
</body>
</html>
There is no code in the code-behind page.
Do you know someone who can help? Share a link to this thread on twitter, or facebook.