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 need to know how to create a web part with visual studio 2010 and deploy it with a solution package in a feature.

When I try to do it by just changing the .webpart file to a .dwp file and change the markup in a corresponding way, I get an error in while deploying, probably because my elements.xml where the module is falsely defined.

I don't know where the .dwp file is put and how to reference it? It doesent seem to go where the .webpart file normally goes "14\Features\MyFeature\ClassName".

If I knew where the .dwp goes and how to reference it in my module element I think my top question can be answered.

If anyone wonders why I need to make the wep part a dwp, its because it inherits from the "AggregationWebPart". The root problem may lay somewhere there actually.

share|improve this question
Why do you want to make it a DWP file? Is there something with a .WEBPART file you are unable to do? – John Chapman Nov 23 '11 at 17:44
1.Try create DWP using WSP builder 2.Save default AggregationWebPart.dwp from webpart gallery and edit it. Then, after you deploy your wsp, add dwp to the webpart gallery manually first. – dbardakov May 26 '13 at 20:34
this link will be helpful..… Hope it works – user40666 Mar 19 '15 at 14:42

This link might help you out:

"Both .dwp and .webpart file types are used to describe where the code is for a web part. They are XML web part descriptors deployed with the web part. The difference is .dwp was the file extension used in version 2 of SharePoint and .webpart is a new extension used in version 3."

share|improve this answer

Go through the link thsi may help..

share|improve this answer
While this may theoretically answer the question, we prefer inclusion of the essential parts of the answer here, and to provide the link for reference. See answer for general guidelines. – SPDoctor Jun 24 '13 at 14:49

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.