A Practical Guide to SharePoint 2013

A Practical Guide to SharePoint 2013
A Practical Guide to SharePoint 2013 - Book by Saifullah Shafiq

Tuesday, November 22, 2011

the type or namespace name 'Administration' does not exist in the namespace 'Microsoft.SharePoint'

The type or namespace name 'Administration' does not exist in the namespace 'Microsoft.SharePoint'

This is one error. The other is as follows:

The type or namespace name 'SPFeatureReceiverProperties' does not exist in the namespace 'Microsoft.SharePoint'

You have started creating an application for SharePoint but you are wondering why these errors are occurring. Worry not! Change the target framework to 3.5 in your application and these errors will go away.

1.      Go to project properties. Select “Application” from the left side.
2.      Change target framework to “.NET Framework 3.5”.
3.      Visual Studio will prompt you to restart it. Click OK.

The error goes away after Visual Studio reopens.