Custom Webpart doesn't show up in Sharepoint 2010 after deploying from VS2010

Frank Rosario
  • Custom Webpart doesn't show up in Sharepoint 2010 after deploying from VS2010 Frank Rosario

    Full disclosure: Sharepoint development noob. I currently have 3 custom web parts built in an SP solution in VS2010. I build and deploy my project out to our local Sharepoint dev box. However, after deploying, only the first 2 custom web parts show up under the Custom category in the "insert web part" ribbon section. I checked the elements.xml file for all 3 webparts, they're all set up to be listed under the custom group. Any ideas on how I can debug this? Any constructive advice is greatly appreciated.

    Home elements.xml

    <?xml version="1.0" encoding="utf-8"?>
     <Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
      <Module Name="Home" List="113" Url="_catalogs/wp">
        <File Path="Home\Home.webpart" Url="Home.webpart" Type="GhostableInLibrary" >
          <Property Name="Group" Value="Custom" />
        </File>
      </Module>
    </Elements>
    

    IdeaEditor elements.xml

    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
      <Module Name="IdeaEditor" List="113" Url="_catalogs/wp">
        <File Path="IdeaEditor\IdeaEditor.webpart" Url="IdeaEditor.webpart" Type="GhostableInLibrary" >
          <Property Name="Group" Value="Custom" />
        </File>
      </Module>
    </Elements>
    

    IdeaGrid elements.xml

    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
      <Module Name="IdeaGrid" List="113" Url="_catalogs/wp">
        <File Path="IdeaGrid\IdeaGrid.webpart" Url="IdeaGrid.webpart" Type="GhostableInLibrary" >
          <Property Name="Group" Value="Custom" />
        </File>
      </Module>
    </Elements>
    

  • Make sure that there are no naming conflicts of your .webpart files. Please update your question with contents of the elements.xml file(s). Have you used several SPI's (SharePoint project items) for the Web Parts or one single?

  • Have you checked the package editor to ensure that all 3 web parts are being packaged up when you deploy the solution?

  • I figured out the issue. I'm not sure why, but changing the feature name in my solution seemed to fix the problem. Thanks for the help, though.

Related questions and answers
  • in-browser and they are visible in SPDesigner, but when I "View All Site Content" they are not there. Why is this the case? The Feature's Elements File: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements Id="9e85eb79-6d8d-4ff3-b0d4-64d55c3bb577" xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;Module Name="Pages" Url="Pages"&gt; &lt;File Path="Example.aspx" Url="Example.aspx" IgnoreIfAlreadyExists="False"&gt; &lt;Property Name="Title" Value="The Example" /&gt; &lt;Property Name="ContentType" Value="Page" /&gt; &lt;/File> &lt

  • ;?xml version="1.0" encoding="utf-8" ?&gt; &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;Module Name="WebPartPopulation" Url="_catalogs/wp" RootWebOnly="TRUE"&gt; &lt;File Url="myStoreComms.webpart" Type="Ghostable"&gt; &lt;Property Name="Group" Value="MyGroup"&gt;&lt;/Property> &lt;Property Name="QuickAddGroups" Value="MyGroup" /&gt...; } } } } finally { if (site != null) site.Dispose(); } } In the feature.xml i have this below &lt;?xml version="1.0" encoding="utf-8

  • " /&gt; &lt;/ElementManifests> &lt;/Feature> elements.xml &lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;/Elements>... in a WebPart zone. When doing this, I get an error message : Tooltips: List View Web Part could not be added, list may be hidden. What's wrong with the list? feature.xml &lt;?xml version="1.0..., Culture=neutral, PublicKeyToken=1de0ffdb1fdf1b80" ReceiverClass="MyApp.WebServices.TooltipsReceiver" xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;ElementManifests> &lt

  • ()); } UPDATE: Based on feedback from Wictor, I tried the following: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;webParts> &lt;webPart xmlns="http://schemas.microsoft.com/WebPart/v3"&gt; &lt.../WebPart/v2/ContentEditor\" /&gt; &lt;PartStorage xmlns=\"http://schemas.microsoft.com/WebPart/v2/ContentEditor\" /&gt;&lt;/WebPart>"; var webPartXml = "&lt;?xml version=\"1.0\" encoding=\"utf-8...;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;"; //webPartXml = webPartXml + "&lt;WebPart xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns

  • someone else has cracked this nut. &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt; &lt;Module Name="Pages"&gt; &lt;File Path="" Url="default.aspx"&gt; &lt;AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1"&gt; &lt;![CDATA[ &lt;WebPart xmlns="http://schemas.microsoft.com/WebPart/v2" xmlns:iwp="http... Module: I think this is the most likely path forward, however it seems to always want to provision a file to the site. For example, if I want to add a web part to the home page (default.aspx

  • :variable name="url"&gt; &lt;xsl:value-of select="substring-before(substring-after(substring-after($thisNode/@*[name()=current()/@Name],';#'),';#'),';#')"/&gt; &lt;/xsl:variable> &lt..., but that ends up rendering the actual anchor tag, as opposed to a clickable hyperlink: &lt;a href="http://www.something.com"&gt;www.something.com&lt;/a> So then I tried creating a XSL transform, since... confirm (or deny) that the following looks legitimate (or suggest a better way to do it)? &lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint

  • I have a content type defined in Elements.xml and I want to add an Event Receiver. My Elements.xml looks like this: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Elements xmlns="http... version="1.0" encoding="utf-16"?&gt; &lt;ContentType ID="0x0104008A424DE98660457481EB7D8DDB5161EE" Name="News Posting" Group="News" Description="A News Posting" Sealed="TRUE" Version="1"&gt; &lt;Folder...://schemas.microsoft.com/sharepoint/events"&gt; &lt;spe:Receivers xmlns:spe="http://schemas.microsoft.com/sharepoint/events"&gt; &lt;Receiver> &lt;Name>ItemAdded</Name>

  • information using GetList. I use the List GUID as the list name. An exception is thrown. The SOAP body is shown below. &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;soap:Envelope xmlns:soap="http...;errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/"&gt; Die Liste ist nicht vorhanden. Die ausgewählte Seite enthält eine Liste, die nicht vorhanden ist. Die Liste könnte von einem anderen Benutzer gelöscht worden sein. &lt;/errorstring> &lt;errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/"&gt;0x82000006&lt;/errorcode>

  • By;@_UIVersionString,Version;@Attachments,Attachments;@File_x0020_Type,File Type;@FileLeafRef,Name (for use in forms);@FileDirRef,Path;@FSObjType,Item Type;@_HasCopyDestinations,Has Copy Destinations;@_CopySource,Copy Source;@ContentTypeId,Content Type ID;@_ModerationStatus,Approval Status;@_UIVersion,UI Version;@Created_x0020_Date,Created;@FileRef,URL Path;&lt;/datafields> &lt;XSL> &lt;xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http

Data information