Geeks With Blogs
Bander Alsharfi yet another WinFX fan!

Windows SharePoint Services SP2 does support the .NET Framework 2.0, CLR 2.0 and ASP.NET 2.0; therefore you can build ASP.NET 2.0 Web Parts using Visual Studio 2005 and deploy them on Windows SharePoint Services SP2; however, this process is not as straight-forward as it sounds here!

To leverage ASP.NET 2.0 Web Parts in Windows SharePoint Services, a wrapper Web Part must be written to make the ASP.NET 2.0 Web Part appear to be a Windows SharePoint Services Web Part. After this is done, your ASP.NET 2.0 Web Part should function normally within your Windows SharePoint Services pages. Wrapper Web Parts will not be required in the next version of Windows SharePoint Services or the next version of SharePoint Portal Server (code named Office "12" SharePoint Servers), which both natively support ASP.NET 2.0. For wrapper Web Parts, you might want to investigate http://www.smartpart.info/default.aspx. You can grab the latest version of SmartPart (called Son of SmartPart) off of GotDotNet at http://www.gotdotnet.com/workspaces/releases/viewuploads.aspx?id=6cfaabc8-db4d-41c3-8a88-3f974a7d0abe. This SmartPart should allow you to contain ASP.NET 2.0 Web Parts on WSS SP2 sites inside Web Part Zones J – I suggest you give it a shot!

However, SharePoint Portal Server 2003 SP2 DOES NOT support .NET Framework 2.0. However, the next major release of SPS will be fully based on ASP.NET 2.0 and will make use of its many features.

This article would shed more light on the new features in WSS SP2 and would also give more info on how to configure WSS SP2 to support .NET Framework 2.0.

My opinion around the matter is this: 

  • If you need to deploy the Web Parts on SPS 2003 then it’s best to continue building native .NET Framework 1.1 Web Parts until the next major release of SPS is out.
  • If some features in ASP.NET 2.0 Web Parts are necessary for your application at this time, and you can afford to deploy the Web Parts on Windows SharePoint Services instead of the full-fledged SPS (i.e. a case where the enterprise features of SPS are not needed), then you can build ASP.NET 2.0 Web Parts and deploy on WSS SP2 as described above.

Finally, I would suggest that for Enterprise-Level Portals you continue to use SharePoint Portal Server 2003 SP2 and build native Web Parts on .NET Framework 1.1 like you would normally do until the next major release is out.

Posted on Thursday, January 19, 2006 6:23 AM | Back to top


Comments on this post: Running ASP.NET 2.0 Webparts over Sharepoint Portal Server 2003

# re: Running ASP.NET 2.0 Webparts over Sharepoint Portal Server 2003
Requesting Gravatar...
As far as I know SPS 2003 *does* support .Net Framework 2.0 provided you have SPS 2003 SP2.

What it doesn't support - even with SP2 - is ASP.NET 2.0
Left by MikeWalshHelsinki on Mar 06, 2006 6:04 AM

# re: Running ASP.NET 2.0 Webparts over Sharepoint Portal Server 2003
Requesting Gravatar...
So Does this mean building ASP.NET 2.0 Web Parts and deploying it on WSS SP2 will be stable and reliable or not?
Left by Maskar on Mar 28, 2006 8:54 AM

# re: Running ASP.NET 2.0 Webparts over Sharepoint Portal Server 2003
Requesting Gravatar...
Does anyone have an example of an asp.net web part inside of son of smartpart. The user control one is straight forward, but I do not see how to create an actual web part that will render in sps.

Thank and have a nice day!
Left by Ryan McLean on Apr 06, 2006 6:28 PM

# re: Running ASP.NET 2.0 Webparts over Sharepoint Portal Server 2003
Requesting Gravatar...
1. Assembly that has .NET 2.0 web part should be deployed in GAC

2. Example syntax <SafeControl Assembly="SimpleWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e27f714b83cac0f9" Namespace="SAPWebPart" TypeName="SimpleWebPart" Safe="True" />
</SafeControls> need to be added to web.config of WSS 2.0 with SP 2.

3. WebPartAssembly=SimpleWebPart, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e27f714b83cac0f9 and WebPartType=SAPWebPart.SimpleWebPart as per sample
Left by Raju Indukuri on Jan 31, 2007 5:55 PM

# re: Running ASP.NET 2.0 Webparts over Sharepoint Portal Server 2003
Requesting Gravatar...
Above post tells how to make use Son of smart part WP to display ASP.NET web part.
Left by Raju Indukuri on Jan 31, 2007 6:00 PM

# re: Running ASP.NET 2.0 Webparts over Sharepoint Portal Server 2003
Requesting Gravatar...
Pls any can give the steps by steps regarding the wrapping asp.net 2.0 web part into to wss 2.0 web part (in VS 2003)
Left by Hafees on Oct 20, 2008 5:10 AM

Your comment:
 (will show your gravatar)


Copyright © Bander Alsharfi | Powered by: GeeksWithBlogs.net