An error occurred during the compilation of the requested file, or one of its dependencies. The type 'Microsoft.SharePoint.Portal.WebControls.WebPartLoc' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Sha

10/01/2012 11:49

An error occurred during the compilation of the requested file, or one of its dependencies. The type 'Microsoft.SharePoint.Portal.WebControls.WebPartLoc' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'.

Troubleshoot issues with Microsoft SharePoint Foundation.

 

We added following row to .aspx file in Visual Studio at the beginning closed in gl, gt braces.

<%@

Register tagprefix="SPSWC" namespace="Microsoft.SharePoint.Portal.WebControls" assembly="Microsoft.Sharepoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"

%>

Register tagprefix="SPSWC" namespace="Microsoft.SharePoint.Portal.WebControls" assembly="Microsoft.Sharepoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"

<%@ assembly="Microsoft.Sharepoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" namespace="Microsoft.SharePoint.Portal.WebControls" register="" tagprefix="SPSWC">