My application page code
<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerCard.aspx.cs" Inherits="HnGTest.Pages.Pages.CustomerCard, $SharePoint.Project.AssemblyFullName$" MasterPageFile ="~masterurl/default.master" %>
while my code file structure
using System;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using HnGTest.DataEntities;
using System.Configuration;
using System.Web.UI.WebControls;
using System.Web.UI;
namespace HnGTest.Pages.Pages
{
public partial class CustomerCard : Microsoft.SharePoint.WebPartPages.WebPartPage
{}
element.xml
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Pages" Url="SitePages">
<File Path="Pages\CustomerCard.aspx" Url="CustomerCard.aspx" Type="GhostableInLibrary"/>
</Module>
</Elements>
Aspx and cs file within module that solution architexture structure like
but while I deploy I get an error:
"An unexpected error has occurred. "
Update : public partial class CustomerCard :
Microsoft.SharePoint.WebPartPages.WebPartPage