I tried to create an application page in SharePoint 2013 by using Visual Studio, The page was created but, I don't know where it's created in SharePoint?

And I need to create it in Sub-site Pages library?

1 Answer 1


Application pages get created in Layout folder 15 hive.

Following is the path of Layout folder

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS

If you want to create page in pages folder, you have to use module element. Following is sample code.

 <Module Name="Name" Url="Pages"  Path="PathInSolution">
    <File Url="Name.aspx" Type="GhostableInLibrary"  IgnoreIfAlreadyExists="FALSE"  Path="Name.aspx" Level="Published"  ReplaceContent="TRUE"/>

  • Thanks Akshay,Its working, great,Then i need to add pages into pages folder in sub site?
    – Debugger
    Aug 26, 2016 at 9:27
  • How to deploy the pages in sub site pages folder?@Akshay
    – Debugger
    Sep 3, 2016 at 6:11
  • Create one feature with web scope and add module element with above code.And activate this feature in the particulate sub site.you will find that feature under "manage site feature" Sep 3, 2016 at 7:46
  • I tried to activate the feature, its shows a error message"Server Error in '/' Application."@Akshay
    – Debugger
    Sep 3, 2016 at 10:32
  • Do you have pages library in sub site?if not you need to activate "SharePoint server publishing feature" first.Could you please share your element.xml code? Sep 3, 2016 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.