Ive been trying to convert my asp.net website into a web application following the guide provided on msdn. However, ive run into a problem with some of my usercontrols that implements templating, getting the following error:

**'System.Web.UI.UserControl' does not have a public property named 'ContentTemplate'**

The codebehind clearly defines the template property like this which works fine in WS´s.

```
[TemplateContainer(typeof(ContentContainer))]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateInstance(TemplateInstance.Single)]
public ITemplate ContentTemplate { get; set; }

```

Update: I dont know how or why but some of these controls have managed to convert into WAP usercontrols (with the designer file added), and the problem then is that no asp controls i define within these templates can be found anymore in code behind.

The error:

**The name 'DropDownRoles' does not exist in the current context**

The markup:

```
<%@ Register src="~/Controls/Containers/ContainerFrame.ascx" tagname="ContainerFrame" tagprefix="uc" %>

<uc:ContainerFrame ID="ContainerFrame1" Title="Layout" runat="server">
<ContentTemplate>
    <asp:DropDownList ID="DropDownRoles" runat="server" />
</ContentTemplate>
</uc:ContainerFrame>

```

Any ideas?