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

<<  March 2024  >>
MoTuWeThFrSaSu
26272829123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar