Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6749499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:41:51+00:00 2026-05-26T12:41:51+00:00

First off i am a big fat NOOB in regards to Sharepoint 2007 webpart

  • 0

First off i am a big fat NOOB in regards to Sharepoint 2007 webpart development but i am working at it.

Now for the real problem, so i develop this webpart and follow the ‘Loose’ advise from various sites on how to setup the features.xml, .xml, manifest.xml, solution.ddf and solution.build files. Basically, i have a all-in-one solution where i build the webpart and then in post-build event compile all the source files into the WSP deployment package.

Problem i am having is that I can add the solution to the sharepoint site but when i go to Deploy it through CA-Operations-Solution management i get this great error:

Error as reported from Sharepoint

Failed to instantiate file “ChartPartWP.webpart” from module “ChartPartWP”: Source path “ChartPartWP\ChartPartWP.webpart” not found.

When i looked at the file-system the folder ChartPart is present in TEMPLATE\FEATURES with the ChartPartWP.webpart and other support files.

What is not happening that i need to resolve.

Edit: 10/24/2011 @ 11:36PM

Solution.ddf

.OPTION EXPLICIT
.Set CabinetNameTemplate=ChartPartWP.wsp
.Set DiskDirectoryTemplate=CDROM
.Set DiskDirectory1=Package
.Set CompressionType=MSZIP
.Set UniqueFiles="ON"
.Set Cabinet=On
.Set SourceDir="\\<fileserver>\common share\Software_Development\MPT\Sharepoint2007\ChartPart\"

Manifest.xml manifest.xml

; binary
bin\release\TCBOE.ChartPart.dll TCBOE.ChartPart.dll

; feature files
TEMPLATE\FEATURES\ChartPartWP\ChartPartWP.xml ChartPartWP\ChartPartWP.xml
TEMPLATE\FEATURES\ChartPartWP\feature.xml ChartPartWP\Feature.xml

; web part files
TEMPLATE\FEATURES\ChartPartWP\ChartPartWP.webpart ChartPartWP\ChartPartWP.webpart
TEMPLATE\FEATURES\ChartPartWP\LockedChartPartWP.webpart ChartPartWP\LockedChartPartWP.webpart

manifest.xml

<?xml version="1.0" encoding="utf-8"?>
<Solution xmlns="http://schemas.microsoft.com/sharepoint/"
 SolutionId="{0C32EA7F-78C2-4814-A4C9-88256E49E371}">
  <FeatureManifests>
    <FeatureManifest Location="ChartPartWP\feature.xml" />
  </FeatureManifests>
  <Assemblies>
    <Assembly Location="TCBOE.ChartPart.dll"
              DeploymentTarget="GlobalAssemblyCache" />
  </Assemblies>
</Solution>

ChartPartWP.xml

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

feature.xml

<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
  Id="47D62F5E-B0E0-4f93-BCD1-081CA794527C" Version="3.5.1.0"
  Title="TCBOE ChartPart"
  Description="Provides a Chart Web object to be used in Sharepoint 2007."
  AutoActivateInCentralAdmin="TRUE"
  Scope="Site">
    <ElementManifests>
        <ElementManifest Location="ChartPartWP.xml" />
        <ElementFile Location="ChartPartWP.webpart" />
        <ElementFile Location="LockedChartPartWP.webpart"/>
    </ElementManifests>
</Feature>

Would there be any receivers/handlers i need make are implemented for the installation to take hold? I didnt read anything about it but read something about a FeatureReceiver for a purpose, but cant remember for the life-of-it, why you need the FeatureReceiver (SPFeatureReceiver)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:41:52+00:00Added an answer on May 26, 2026 at 12:41 pm

    SPFeatureDefinition.AutoActivateInCentralAdmin Property

    Gets a value that specifies whether the Feature is activated on the central administrative Web site, site collection, or Web application upon installation.

    Without testing your entire samples, using this property sounds off to me. Try removing that.

    update: you should post your .webpart also (it is a xml).

    Try these configs: Feature.xml

    <?xml version="1.0" encoding="utf-8" ?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/" Id="47D62F5E-B0E0-4f93-BCD1-081CA794527C" Version="3.5.1.0" Title="TCBOE ChartPart" Description="Provides a Chart Web object to be used in Sharepoint 2007." Scope="Site">
        <ElementManifests>
            <ElementManifest Location="ChartPartWP\ChartPartWP.xml" />
            <ElementFile Location="ChartPartWP\ChartPartWP.webpart" />
            <ElementFile Location="ChartPartWP\LockedChartPartWP.webpart"/>
        </ElementManifests>
    </Feature>
    

    webpart.xml

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

    If nothing works, I would recommend installing and using the VSeWSS 1.3 from Microsoft, create a new webpart, hit F5, test it. If you can see it in the “Add Web Parts” dialog, move your files over. This is the closest you will get to the SharePoint 2010 experience (which is terribly improved).

    Having to fiddle with these files, even more to a beginner, should not be your burden.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First off, I'm working on an app that's written such that some of your
First off, a big thanks to the people behind the new boost::geometry library! This
First off I am new to this site and it is a big help,
First, yes i know this is a big security NONO . But the scenario
First off all I know: Premature optimization is the root of all evil But
I'm a total newbie at Haskell, and for my first real problem problem with
First off, I apologize for my inaccurate vocabulary. I am an absolute ground-zero beginner.
First off: Why is dependency management for obj-c projects such a pain?! I am
First off, this example will only work in a browser that supports :nth-child ,
First off, I am using Windows XP. I have multiple hard drives and it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.