This project is read-only.

Error in OneDriveCustomzer app on first run

Jul 15, 2014 at 3:46 PM
Edited Jul 15, 2014 at 3:48 PM
Hi All,

I am trying to run the OneDriveCustomiser app sample but when I run it I get the following error:
'Contoso.Core.OneDriveCustomizerWeb.Default' is not allowed here because it does not extend class 'System.Web.UI.Page'.

When I look at the page source it appears that it does...
namespace Contoso.Core.OneDriveCustomizerWeb.Pages
    public partial class Default : System.Web.UI.Page
Any ideas?
Jul 15, 2014 at 6:22 PM
I found the problem. There is a mismatch in class names.

in /pages/Default.aspx I had to change
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Contoso.Core.OneDriveCustomizerWeb.Default" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Contoso.Core.OneDriveCustomizerWeb.Pages.Default" %>
and I also had to change (in /pages/Default.aspx.designer.cs)
namespace Contoso.Core.OneDriveCustomizerWeb
namespace Contoso.Core.OneDriveCustomizerWeb.Pages
Hope this helps someone.
Marked as answer by MarkStokes on 7/15/2014 at 10:26 AM