Downgrade a SharePoint 2010 Visual Web Part to SharePoint 2007
Visual Studio Web Part
post
This post is over a year old, some of this information may be out of date.
When you need to downgrade/convert a SharePoint 2010 Visual Web Part to SharePoint 2007, you need to make the following changes to the user control to make it work for SharePoint 2007:
- In the Visual Web Parts User Control remove the following line:
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
- Change the version number of the following lines from 14.0.0.0 to 12.0.0.0
<!-- Original --><%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<!-- Modified --><%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %><%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
- The next steps to downgrade can be found on Corey Roth his blog: Using Visual Studio 2010 SharePoint Templates to deploy a web part in SharePoint 2007.
Original

Modified

Related articles
Sandboxed To-Do List Web Part on Office 365 – SharePoint Online
client object model ECMAscript Office 365 Sandboxed SharePoint Online Web Part
Fix: People Search Box Has Layout Problems When Used Outside a Search Center
Search Search Center Searchbox v4.master Web Part
Programmatically Setting the Fetched Properties to an Extended Search Core Result Web Part
Search Search Center Web Part
Report issues or make changes on GitHub
Found a typo or issue in this article? Visit the GitHub repository to make changes or submit a bug report.
Comments
Loading...
Let's build together
Manage content in VS Code
Present from VS Code