SharePoint User Group UK

Share the knowledge!

Welcome to SharePoint User Group UK Sign in | Join | Help
in
Home Blogs Forums Photos Files Roller

WebPart Deployment Issues

Last post 05-12-2008, 9:29 AM by Welshyboyo. 5 replies.
Sort Posts: Previous Next
  •  05-09-2008, 3:38 PM 10611

    WebPart Deployment Issues

    Hi,

    Being a newbie at SharePoint, in fact only been on a 1 week course. I have encountered my first stumbling block.

    When I deploy my webpart, it appears in the list with the guid name. i.e. 91357f78-ae21-4063-960b-350c427a29ce_DBAccess.dwp when I called the webpart DBAccess in the manifest.xml, the DDF and the DWP files. How do I stop it using the guid?

    I am not deploying to the GAC.

    Any help would be very gratefully received.

    Very Kind regards

  •  05-09-2008, 4:29 PM 10613 in reply to 10611

    Re: WebPart Deployment Issues

    How are you deploying the webpart? As a feature in a solution package?
    www.myfatblog.co.uk
    MCTS: WSS 3.0
    MCTS: MOSS 2007
  •  05-12-2008, 8:11 AM 10627 in reply to 10613

    Re: WebPart Deployment Issues

    Hi,

    I am attempting to deploy as a solution using a wsp package.

    I then use

    stsadm -o addsolution -filename c:\wsp\dbaccess.wsp
    stsadm -o deploysolution -name dbaccess.wsp -allcontenturls -immediate
    stsadm -o execadmsvcjobs

    I am then able to see the solution when I click Add a Web Part. However, the solution name for some reason is the guid_dbaccess.wsp. I just need to get rid of the guid bit.

    Kind regards

    Simon

  •  05-12-2008, 8:37 AM 10629 in reply to 10627

    Re: WebPart Deployment Issues

    Are you using thw WSS Visual Studio Extensions v1.1?

    If not, then I'd suggest an upgrade might help you out.


    Paul Leigh
  •  05-12-2008, 9:15 AM 10631 in reply to 10629

    Re: WebPart Deployment Issues

    Many thanks Paul,

    I will download as suggested.

    Here is my Manifest.xml and DWP files as this might help resolve the issue. I am using WSS v3 element definitions. I am sure I've just made a school boy mistake.

    Manifest.XML

    <?xml version="1.0" encoding="utf-8" ?>
       <
    Solution xmlns="http://schemas.microsoft.com/sharepoint/" SolutionId="92357E78-AD21-4063-960B-350C427A29CE">

    <Assemblies>
       <
    Assembly Location="DBAccess.dll" DeploymentTarget="WebApplication">
    <
    SafeControls>
       <
    SafeControl Assembly="DBAccess, Version=1.0.0.0.0, Culture=neutral, PublicKeyToken=ae88aeb925c19b40" Namespace="DBAccess" TypeName="*" Safe="True" /></SafeControls>
    </
    Assembly>
    </Assemblies>

    <DwpFiles>
       <
    DwpFile Location="DBAccess.dwp" />
    </
    DwpFiles>
    </
    Solution>

     

    DWP File

    <?xml version="1.0" encoding="utf-8" ?>

    <webParts>
    <
    webPart xmlns="http://schemas.microsoft.com/WebPart/v3">

    <metaData>
    <type name="DBAccess.DBConnect, DBAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ae88aeb925c19b40" />
    <
    importErrorMessage>Cannot import this Web Part. Contact IS!</importErrorMessage>
    </
    metaData>

    <data>
    <
    properties>
    <
    property name="Title" type="string">DB Access</property>

    <property name="Description" type="string">My DB Access WebPart</property>

    <property name="AllowClose" type="bool">False</property>

    <property name="AllowMinimize" type="bool">True</property>

    <property name="CatalogIconImageUrl" type="string">/_layouts/images/ACL16.GIF</property>
    </
    properties>
    </
    data>
    </
    webPart>
    </
    webParts>

     

  •  05-12-2008, 9:29 AM 10633 in reply to 10631

    Re: WebPart Deployment Issues

    OK, I think I have resolved the issue.

    Now as to why this works, I have no idea. But it, seems to do the trick.

    The problem was I named the DWP file with a .dwp extension. I changed this to a .webpart extension, renamed the file, changed the ddf file to point to this file and modified the name in the manifest.xml.

    Retried and it now no longer displays the guid, It actaully uses the DWP properties as I had hoped.

    Many thanks to those who responded to my post. I hope you can help me in my next issue. DUE SOON! :-)

    R.

    Me.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems