none
Deploying custom pages in LAYOUTS folder using WSP file

    Question

  • Hello Everyone,

    I've run in following issue:

    I have a Workflow attached to a list which is using custom ASPx pages. These pages are in the /_layouts/ folder so they can be accessed from multiple teamsites. There are 2 other lists which are being accesed by the workflow logic(like copying approved and disapproved documents).

    Now everything is working on my testing environment and I want to move it to my production environment. Offcourse I would like to move it as it is, that means all 3 lists definitions, workflow, asp pages in /_layouts/ folder and also the ContentTypes - that means Feature which is registering ContentTypes in the sharepoint teamsite.

    I guess I should be using Sharepoint Solution File. So I downloaded and tried the SharePoint Sulution Generator, but from what I've seen, this generetor doesn't include the /_layouts content in the generated solution.

    I've seen that there are other tools like WSPBuilder which I might use.  But I would like to know if someone had run in simiral issue, having all of these things to move from testing to production environment in one time.

    One more thing. I tried to move it all separately - feature for worfklow, Content Types, create list by hand, add the templates, that all went ok. But then I wanted to move the Web Application - all the aspx sites and here I runed into problems again. I right click the Web Application project -> Deploy, I selected my sharepoint server and the /_layouts/ folder and I got and errorr saying that these folder is reserved and can't be accessed. But before on my testing server - localmachine it worked. So it seems to me that SharePoint's LAYOUTS folder can not be accessed remotely. So I'm hoping now that WSP will save me.

    If anyone can give me any helpfull information how to get custom aspx pages from LAYOUTS folder to be packed in WSP file I would be really greatfull.

    Cheers

    Honga


    Monday, February 16, 2009 8:47 PM

Answers

  • I highly recommend WSPBuilder for this. WSPBuilder can take care of almost any deployment situation. I use it for all my SharePoint development solutions. It can definetly move the files to the Layouts folder. All you have to do is simulate the 12 hive structure in your WSPBuilder solution and it will create a wsp that will push those files to the respective places on the server when deployed.
    • Marked as answer by hongabonga Friday, April 03, 2009 12:56 PM
    Monday, February 16, 2009 9:24 PM
  • Chris Johnson describes how to deploy to LAYOUTS from a VSeWSS project here:
    Deploying files under the \TEMPLATES directory in a SharePoint VSeWSS project

    That said, many prefer to use either WSPBuilder or STSDev over VSeWSS, so you might want to take the features from your generated solution and move them into a solution created with one of the more flexible tools.

    Cheers ~
    Keith

    http://solutionizing.net/
    • Marked as answer by hongabonga Friday, April 03, 2009 12:56 PM
    Monday, February 16, 2009 10:54 PM
  • With regards to the tool choice. It is worth looking at this  page where all of them are compared before making your choice.

    http://www.sharepointdevwiki.com/display/public/Solution+package+development+tool+comparisons

    I believe all 3 tools will do this for you.

    SharePoint Solution Architect, Perth Australia - MCTS WSS Dev, WSS Adm, MOSS Dev, MOSS Adm - Readify - http://wss.made4the.net/- http:///www.sharepointdevwiki.com/
    • Marked as answer by hongabonga Friday, April 03, 2009 12:55 PM
    Tuesday, February 17, 2009 12:04 AM

All replies

  • I highly recommend WSPBuilder for this. WSPBuilder can take care of almost any deployment situation. I use it for all my SharePoint development solutions. It can definetly move the files to the Layouts folder. All you have to do is simulate the 12 hive structure in your WSPBuilder solution and it will create a wsp that will push those files to the respective places on the server when deployed.
    • Marked as answer by hongabonga Friday, April 03, 2009 12:56 PM
    Monday, February 16, 2009 9:24 PM
  • Chris Johnson describes how to deploy to LAYOUTS from a VSeWSS project here:
    Deploying files under the \TEMPLATES directory in a SharePoint VSeWSS project

    That said, many prefer to use either WSPBuilder or STSDev over VSeWSS, so you might want to take the features from your generated solution and move them into a solution created with one of the more flexible tools.

    Cheers ~
    Keith

    http://solutionizing.net/
    • Marked as answer by hongabonga Friday, April 03, 2009 12:56 PM
    Monday, February 16, 2009 10:54 PM
  • With regards to the tool choice. It is worth looking at this  page where all of them are compared before making your choice.

    http://www.sharepointdevwiki.com/display/public/Solution+package+development+tool+comparisons

    I believe all 3 tools will do this for you.

    SharePoint Solution Architect, Perth Australia - MCTS WSS Dev, WSS Adm, MOSS Dev, MOSS Adm - Readify - http://wss.made4the.net/- http:///www.sharepointdevwiki.com/
    • Marked as answer by hongabonga Friday, April 03, 2009 12:55 PM
    Tuesday, February 17, 2009 12:04 AM
  • Hello Everyone,

    thank you for the given information, it is really usefull. Now I'm using WSPBuilder and it works fine.

    thnx again
    Honga
    Saturday, February 21, 2009 6:17 PM