Solved

How do you deploy a WebPart in Sharepoint Foundation 2010?

Posted on 2010-08-12
4
960 Views
Last Modified: 2013-11-21
We are new to Sharepoint, and were able to deploy in WSS 3.0, but since moving to Sharepoint Foundation 2010, we haven't been able to figure it out.
We have a pre-packaged WebPart from Amrein Engineering that comes with a .webpart file, .wsp, dll etc.  Step 1 is to run this command
SET STSADM="c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\bin\STSADM.EXE"
%STSADM% -o addsolution -filename AEGoogleChartWebpart.wsp

After that i haven't been able to figure out the next steps to have it show up?
0
Comment
Question by:grettirb
  • 2
4 Comments
 
LVL 42

Expert Comment

by:zephyr_hex (Megan)
ID: 33424930
it's no different than 2007 version.  but you've left out some steps.

after adding the solution, you need to deploy it.
stsadm –o deploysolution –name  AEGoogleChartWebpart.wsp –url http://yoursite –allowCasPolicies –immediate

you must run this logged into an account that is farm admin.

then execute the timer job
stsadm -o execadmsvcjobs


http://moopoo.net/sharepoint/deploy-a-sharepoint-solution-with-stsadm/
0
 

Author Comment

by:grettirb
ID: 33425474
Thanks for your feedback.
I get a "Command Line Error" every time i run this, followed by the listing of all the possible switches and syntax.

This is the exact command i am running....
stsadm.exe -o deploysolution -name C:\Download\Sharepoint_Resources\Webparts\AEGoogleChartWebPart\AEGoogleChartWebpart.wsp -url http://sharepoint -immediate

Yes... "Sharepoint" is the name of the server.
I have tried it with and without the full file path, with and without the -allowCasPolicies

Any ideas?
0
 
LVL 9

Expert Comment

by:SharePointGirl
ID: 33427591
Are you running with more than one front end server? Could you have installed it on one server but not on another?

If you go to ccentral admin and view your solutions - what does it say?
0
 
LVL 42

Accepted Solution

by:
zephyr_hex (Megan) earned 125 total points
ID: 33431066
it's possible it's a character issue (i've seen this before... not sure if it's your problem):

http://sharepointxperience.blogspot.com/2007/07/stsadm-command-line-error.html
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question