Deploy solution to a Web Application scope
stsadm commands I've been using to add/deploy :
Case 1 : stsadm -o addsolution -filename[[solutionfilename]]stsadm -o execadmsvcjobsstsadm -o deploysolution -name [[solutionfilename]] -url http://test404/ -immediateSpecific error message I receive when running the stsadm -o deploysolution command:This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.when ever i remove the url it is deployingCase2 :stsadm -o deploysolution -name [[solutionfilename]]Specific error message I receive when running the stsadm -o deploysolution command:This solution contains resources scoped for a Web application and must be deployed to one or more Web applications.when ever ikeep the url it is deploying.what is the difference in the Case 1 and Case 2 ? why in the Case 1 it is asking to remove the URL and why in the Case 2 it is asking to keep the URL ?is there any work around so that it may or may not ask the URL for both the cases ?Plz help me out !Thx !Vivek
May 12th, 2009 4:44pm
Do you already haved install the solution and are you making a upgrade solution??
Do you have xml feature, feature correct format?
Do you forget any file, open wsp with zip and see if are all files there.
Andr Lage Microsoft SharePoint and CRM Consultant http://aaclage.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
May 12th, 2009 6:35pm
Moving to Admin. (stsadm q)WSS FAQ sites: http://wssv2faq.mindsharp.com and http://wssv3faq.mindsharp.com
Total list of WSS 3.0 / MOSS 2007 Books (including foreign language) http://wssv3faq.mindsharp.com/Lists/v3%20WSS%20FAQ/V%20Books.aspx
May 12th, 2009 11:33pm
Hi Vivek
When your solution specifies elements (a.k.a. "resources") that need to be merged into a Web.config file (i.e. "for a Web application") then you must specify the URL parameter. If your solution does not have an assembly or if your solution contains workflows, then you cannot specify the URL parameter.
For more information, please refer to:
http://blogs.msdn.com/jjameson/archive/2007/06/17/issues-deploying-sharepoint-solution-packages.aspx
Hope this helps.
Lu Zou
Free Windows Admin Tool Kit Click here and download it now
May 13th, 2009 11:34pm
I found this post and still cannot understand why this line won't work
STSADM -o deploysolution -name solution.wsp -immediate -url http://localhost:666 -allowGacDeployment -allowCasPolicies -force
I have 4 features into my solution.
A feature deploying Columns, one deploying Content Types, another one deploying Master Pages and one deploying Page Layouts. I'm using WSPBuilder to build the WSP.
There is also 4 DLL which are put into the GAC. One which contains a featureReceiver for the Content Type feature Activation.
The ADDSOLUTION works and when I go to the Solution Management page into the Central Admin, I can manually deploy the solution.
However the STSADM command returns
This solution contains no resources scoped for a Web application and cannot be deployed to a particular Web application.
I tried without the URL parameters and received the following message :
This solution contains resources scoped for a Web application and must be deployed to one or more Web applications.
ThanksDaniel Siconnelli
There is neither good nor evil... only mogwais and gremlins
March 24th, 2010 11:32am
You can add following commands in your batch file. Please replace text placed inside [] bracket as per your requirements.
@echo off
ECHO Press any key to start automated of your webpart
PAUSE
SET SPAdminTool=%CommonProgramFiles%\Microsoft Shared\web server extensions\12\BIN\stsadm.exe
SET wpresourcepath=%CommonProgramFiles%\Microsoft Shared\web server extensions\wpresources
SET /p TargetWebUrl=Enter Web URL :
SET PackageName1=[WSP file name]
echo Adding solution %PackageName1% to SharePoint
"%SPAdminTool%" -o addsolution -filename "%PackageName1%"
echo Deploying solution %PackageNam1e%
"%SPAdminTool%" -o deploysolution -name "%PackageName1%" -url "%TargetWebUrl%" -local -allowGacDeployment -allowCasPolicies -force
echo Installing feature [Feature name] Deployment ...
"%SPAdminTool%" -o installfeature -filename "[You feature name]\feature.xml" -force
echo Activating feature [Feature Name] Deployment ...
"%SPAdminTool%" -o activatefeature -name "[You feature name]" -url "%TargetWebUrl%"
PAUSE
Let me know if this is helpful to you
Thanks,
Ashish Chotalia
Free Windows Admin Tool Kit Click here and download it now
June 9th, 2010 1:52am
You can check this also
http://www.fewlines4biju.com/2012/05/this-solution-contains-no-resources.html
U can deploy through Powershell also.Thanks Bijay |
@Fewlines4Biju |
LinkedIn |
FaceBook | My Blog |
SharePointDotNet.com | EnjoySharePoint.com
May 10th, 2012 3:45am