none
Create sitecollection using wsp and restore it to another server RRS feed

  • Question

  • Hello,

    I have created one site collection : "Test1" at "http://test.com/sites/Test1".

    Now I want to deploy (move this or create) same structure site collection at another server through powershell commands..for example at : http://testdev.com/sites/Test1"

    Tried saving site as template and then downloaded "Test1.wsp" and tried to add through below powershell commands:

    1. Add-SPSolution "Test1.wsp"

    It was successful.

    but when tried to do following operation:

    2.  Install-SPSolution –Identity "Test1.wsp"  –WebApplication " http://testdev.com"  –GACDeployment -Confirm:$false -force

    It giving me error as follows :

    Install-SPSolution : This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application

    Please advice best way to this things.

    Or shall I create sitecollection through visual studio, since start? any option as such, unable to find it.

    Please help.

    Thanking you in advance.

    Regards,

    Jayashri 

    Thursday, March 2, 2017 1:59 PM

All replies