The type of namespace 'administration' could not be found

by zebsadiq 3. February 2011 13:16

Issue when you reference Microsoft.SharePoint.dll in Visual Studio 2010. If you’ve already put in the using statements like bellow:

using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;

You issue a build and it fails and you get the following message:
’The type of namespace 'administration' could not be found’

The fix: Change the target framework to .Net Framework 3.5 (Right click the project in visual studio and go to ‘Properties’)

Tags: , ,

C# | SharePoint 2010 | Visual Studio 2010

Comments

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Calendar

<<  April 2025  >>
MoTuWeThFrSaSu
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

View posts in large calendar