In this article we are going to see how to resolve "The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) " for Windows form application in Visual Studio 2010
The reason of this error is:
"SharePoint 2010 does not support .Net 4.0 in default and Visual Studio 2010 default framework is .Net 4.0."
How to resolve this error:
- Windows 7, 64 bit
- Added the reference Microsoft.SharePoint.dll
The reason of this error is:
"SharePoint 2010 does not support .Net 4.0 in default and Visual Studio 2010 default framework is .Net 4.0."
How to resolve this error:
- Go to the Solution explorer.
- Right click on the Solution Explorer and click Properties.
- Select Application Tab, Change the Target framework into .Net Framework 3.
- Once you change the Target Framework "Target Framework Change "wizard will pop up.
- Click Yes.
- Go the Build tab and change the Platform Target to x64.
No comments:
Post a Comment