Tuesday, March 14, 2006

HOWTO: Install a .Net 2.0 WebPart in Sharepoint 2003

Yes, you too can write all your web parts in VS 2005 and host them on your existing Sharepoint 2003 install. Its kind of tricky thou so I'll try and explain the steps.

1. Download and install "Son of SmartPart" from here

2. Follow the installation Guide included in the ZIP file you just downloaded.

3. **IMPORTANT** You MUST change the root web site to run as ASP.Net 2.0xx. If you do not do this your site will not function properly.

3a. Also, you need to make the Web.Config changes found here or your hosed. Dont run the stsadm command like the article, it won't work (or it didn't for me anyway). Just make the changes that it says the command will make.

4. Remember to add your user control to the UserControls folder and the assembly for it to the BIN folder.

5. Done! Thats it, you can now run a User Control developed in .Net 2.0 Framework on your Sharepoint 2003 portal.

Enjoy!

1 comment:

Abdul Hafees said...

Hi, I have developed custom web part with VS 2005 (inherinting sharepoint web part i.e. Microsoft.SharePoint.WebpartPages ...).

I having a problem deploying it to WSS 2.0 site.

So,pls let me know deployomg methods If it can be deployed.

Or
If I developed the custom web part using the .net 2.0 (inheriting System.Web.UI......) then Is it can be deployed?

Please help me and I am thanking you in advance.