SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to display download links for files attached to list items in my DVWP.

The below code was working fine until I switched to (by switching I mean, deleting and creating a new web part) Linked Source.

<xsl:element name="SharePoint:AttachmentsField">
    <xsl:attribute name="runat">server</xsl:attribute>
    <xsl:attribute name="FieldName">Attachments</xsl:attribute>
    <xsl:attribute name="Visible">true</xsl:attribute>
    <xsl:attribute name="ItemId"><xsl:value-of select="@ID"/></xsl:attribute>

Now the page gives me the following error:

Type 'Microsoft.SharePoint.WebControls.AttachmentsField' does not have a public property named 'xmlns:SharePoint'.

Every list in the Linked Data Source is almost identical.

Any suggestions?

share|improve this question

I believe this is the problem you are having based on your description:

What version number are you currently running?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.