I created a user control in visual studio I want to deploy to sharepoint 2007. This is my first one and I created the project using the repository pattern and POCO. Does sharepoint support this type of webpart implmentation or does all the logic have to be in the code-behind of the user control? The web part deployed successfully (dll in the GAC) but it is not available as a web part in the site. When I try to force it through SPD, the form errors out.



I would recommend you to use WSPBuilder for creating Web Part project in Visual Studio...

Once you installed WSPBuilder, inside Visual Studio you will have WSPBuilder Project Templates, from there select required template... It will create WSP file for you, and you can deploy the WSP easily to get the Web Part!

Give it a try, it should solve all your problems!

  • I should have mentioned I was using wsp builder. Thanks! – steveareeno Jan 5 '13 at 16:21
  • Actually, I wasn't using WSPBuilder. when I created a new WSPBuilder project I was able to create the user control and deploy it to the SP server. Therefore, I am marking yours as the answer also. Thanks! – steveareeno Jan 8 '13 at 21:58
  • That's what I was thinking, WSPBuilder is quite straight forward... No problem! :) – Arsalan Adam Khatri Jan 9 '13 at 8:56

I would also recommend you try SmartPart which is a codeplex project that allows you to host any ASP.NET web user control as a SharePoint web part.

  • Now that I look at the name of the original web part (developed by my predecessor), which mine is a modification of, it was named "MySmartPart" in SharePoint. I have a sneaking suspicion he used SmartPart :). Thanks! – steveareeno Jan 5 '13 at 16:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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