.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Upgrade Solution not updateing web parts in webpart gallery.

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :SharePoint

Hi experts..

I am using following commands for upgrading solution and feature...

stsadm -o upgradesolution -name "%WSPFileName%" -filename "%WSPPath%" -immediate -allowGacDeployment
STSADM -o execadmsvcjobs
stsadm -o deactivatefeature -ID FC35A90B-46D5-4b61-8787-8A667B9275C5 -Url "%URL%"
stsadm -o activatefeature -ID FC35A90B-46D5-4b61-8787-8A667B9275C5 -Url "%URL%"

STSADM -o execadmsvcjobs



with above commands my web part files are getting update in 12 hive features(Web part feature).. but on in web part gallery..

Am i missing anything..? or sequence of commands are not proper...



View Complete Post

More Related Resource Links

Upgrade Solution using a .wsp file created from a site template

Hello, I'm creating a new site template that I will need to move from my development to production server. I have saved the template as a .wsp file and installed it on my staging server without any problems. However, I know once the site goes into production that changes will occur and I will need to upgrade the site template. I have tried to make changes to my development site and save a new site template, and then move to my staging server and upgrade the existing solution using the below PowerShell command, but I get an error that the GUIDS are different and the solution cannot be upgraded. Command: Update-SPUserSolution -Identity MyTemplate v1.wsp -Site http://webapplication/site  -ToSolution MyTemplate v2.wsp Error: Update-SPUserSolution : Given solution cannot be upgraded to the provided ToSolution because the solutions have different Guids. Does anyone know how I would upgrade the solution when using a site template as the bases for the solution? Thanks, wm5

Sandbox Solutions with Web Parts Upgrade Error

I have a Visual Studio Sandbox solution with multiple web parts deployed on the site collection. It seems like I was able to upgrade the solution code without any issues and redeploy. Suddenly I started getting 'Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: The type is not registered as safe" error.. Any idea what could cause this issue and how to avoid that in future?

Site template uploaded to Solution Gallery, activated, not showing in Template Selection

I accidentally created a site on a path where I needed to create a site collection. After deleting the site and creating the site collection in its place, I arrived at the Template Selection page. I went to Solution Gallery, uploaded my solution (a package made by the consultants who built our SharePoint site) and activated it. When I activated it I got an error message, but the solution shows in the Gallery as active. I went back to Template Selection to select a template from the solution, but none are showing--just the standard templates. How do I fix this?

How to revert a Solution after upgrade?


If I upgrade a Sharepoint Solution using "stsadm -o upgradesolution" command then what is the way to revert back the same to its previous state?

Also let me know the limitation of this approach. For example, if I am GAC'ing a new version of a DLL and replacing some custom .ascx and .aspx files during the upgradation then will the revert process be able to revert the DLL and the files as well?

Pre upgrade missing web parts


I am trying to fix all pre upgrade errors we have, but now i am stuck at two issues.

1: The following web part(s) are referenced by the content, but they are not installed on the web server

Id = 530cf774-77de-679d-f9a3-de8e74999ba8, Type = Unknown, Reference = 5, Status = Missing

This one comes up on all our SharePoint servers except for one of our FE servers. Now i searched for the site this webpart is on and with ?contents=1 and see if there is a error webpart. But this is not the case. Anyone has a idea how i can find out what the problem is here?

2: The following setup file(s) are referenced by the content, but they are not installed on the web server

ReportViewer webpart is not working after SharePoint 2010 upgrade


After upgrading to SharePoint 2010 and Reporting Services 2008 (separate servers), all our web part pages that have the ReportViewer web parts in them are not working.  The error we are getting is "Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe."  All the reports are working on the report server but not through the web parts.  We used Visual Studio 2005 to create these reports and they all work in MOSS 2007 that also ran Reporting Services 2005.  If we delete the web part with the error and put in the ReportViewer web part manually on the page in SharePoint 2010, the reports do work.  But there are too many reports to be doing this manually for every web part page.  We already tried making changes to the Handler Mappings but it did not resolve the errors.  As far as we can tell, all the DLLs are in the right places.  Any help or suggestions would be greatly appreciated.  Thanks.

Anonymous Web Parts Gallery? How do I give anonymous users access to the necessary web parts without


I'm thinking about having an anonymous web parts gallery, alongside the existing web parts gallery in my site collection. I need a way to give anonymous users access to 2 or 3 web parts without giving them full browsing rights to my web part gallery of ~100

I'm pretty sure this is necessary from a security point of view (please feel free to contradict me)

At the moment i'm trying to define a list that is a web part gallery, then i'll add certain web parts just to that list and add them to pages appropriately

Error_1_Error occurred in deployment step 'Upgrade solution': Command ID 'Contoso.Commands.IsSolu


When following this article for creating a Custom Deployment Step for SharePoint Projects i get the following error. (MSFT Article: http://msdn.microsoft.com/en-us/library/ee256698.aspx)

Error: Error 1 Error occurred in deployment step 'Upgrade solution': Command ID 'Contoso.Commands.IsSolutionDeployed' is invalid.

I have gone through the article two times and each time it does the samething. Any reason why it can't see the Command ID?

SAFE Control error after solution upgrade




I have a Sharepoint Solution that provides a couple of webparts. After a solution upgrade (with stsadm -o upgradesolution) I discovered on one system that the Webparts that were drawn to a webpart page now show SAFE CONTROL errors.

I took a look into the web.config, but the SAFE CONTROL entries were still there and from my point of view - correct.

edit: This system has only 1 WF Server.

What has caused these SAFE CONTROL errors ? On other systems this solution upgrade was successful.How can I correct this system ?

edit: Would a complete Solution deinstallation (rectract/delete) and new installation could heal this system ?

Thanks for your help.




Pre-Upgrade: Identifying Missing Web Parts / Features


I'm trying to find what feature the upgrade report is referencing. I tried forcing a removal based on the ID and when I run the upgrade check again, they are still there. Any other way to get a simple name based on the Feature ID?

 The following feature(s) are referenced by the content, but they are not installed on the web server

  • Name = Unknown, Feature id = d0944c5e-9a3a-41a0-ab89-6a810e305574, Reference count = 1, Scope = Web, Status = Missing
  • Name = Unknown, Feature id = b8ded45f-e2d9-4a5f-bd7f-502b737be901, Reference count = 24, Scope = Web, Status = Missing
  • Name = Unknown, Feature id = 84353df7-52b1-463c-a9c0-88a15a0f2087, Reference count = 1, Scope = Web, Status = Missing
  • Name = Unknown, Feature id = 15dd658a-9006-42e7-ab43-54554cf67aa5, Reference count = 1, Scope = Web, Status = Missing
The following setup file(s) are referenced by the content, but they are not installed on the web server
  • Path = [C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\SharePointAJAX\dwp\SPCommunity.webpart], Reference = [1], Status = [Missing]
  • Path = [C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\SharePoi

Custom Web Part not appearing in My Profile webpart gallery


i have created a custom webpart and deployed it in the My Site site collection. I am able to add this custom webpart to My Site page. It is working correctly on My Site page.

However I am not able to add it to My Profile page. This webpart is not displayed in the web part gallery for my profile.

what change should i make to my webpart to make it appear for my Profile as well?


Can't upload powerpoint to slide gallery after upgrade to Windows 7


Several months back I created a slide gallery on sharepoint 2007.  All the integration with powerpoint 2007 worked great.  I have since gotten a new laptop which has Windows 7 but I installed the same version of Office 2007. When I try to upload to my slide gallery now it gives me the "This feature requires Microsoft Office PowerPoint Professional" message.  In researching, I understand that this feature actually requires Office Professional Plus, but I previously had no problem with the version of office that I had.

why is this happening?  Any way around it?  Any way for me to confirm which version of Office I have?

Remove Webpart from Categories gallery?


I have uninstall my webpartsolution using below given statement

Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myspwebapp
Remove-SPSolution–Identity MySharePointSolution.wsp 

opration sucess.

I can see webpart custom folder and name in Categories  gallery  using IE visiting http://myspwebapp in editing webpage insert webpart but with note
"The operation could not be completed because the item was removed from the gallery"

I can delet from Site Setting -WebPart Gallery.

How to remove this from Categories using power shell?



Displaying SharePoint lists in Web Parts

When you create a built-in or custom list in Microsoft Windows SharePoint Services, Windows SharePoint Services creates a Web Part, a basic building block of a SharePoint site, to display that list. These Web Parts are called List View Web Parts. Windows SharePoint Services stores List View Web Parts in the site collection Web Part gallery. (The site collection Web Part gallery is the most central gallery of Web Parts for a work group. By default, the gallery name is the name of the site, such as "Our Team Site Web Part Gallery." )

Six easy ways to customize your site using Web Parts in SharePoint

Becoming familiar with Web Part customization techniques gives you a range of page-customization choices. For example, you can customize your site's home page so that it displays the specific information that your team needs. You can rearrange the list items on the home page, add lists, and even change the images on the home page. As you become more familiar with Web Part Page customization techniques, you can build interactive Web Part Pages that makes the data in lists more dynamic and useful, and you can add new Web Parts that provide access to external data and Web services.

SharePoint Tutorial - Web Parts

A page in SharePoint is comprised of web parts the exist within zones. Web parts are available for just about everything. For example in the page below there are four web part highlighted by different colors. The purple web part displays a short list of the new announcements stored in the annoucements library. The pink web part displays events from a calendar within the site. The green web part displays an image from a location the user specifies. The gray web part displays a list of links from the links list on the site.

Complete SQL Solution

SQL Server Solutions: SQL Server 2000/2005 Related Free Snippets.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend