Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

tree view WebPart - "The type or namespace name 'SPFolder' could not be found"

  Asked By: Naman Ranade         Date: Oct 19, 2009      Category: Sharepoint      Views: 663
 

I need to get the tree view WebPart working but I am getting this error: "Error 102 The type or namespace name 'SPFolder' could not be found (are you missing a using directive or an assembly reference?) "

I am using the following References:

using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;

What am i doing wrong?

Tagged:                          

 

1 Answer Found

 
Answer #1       Answered By: Trinity Scott          Answered On: Oct 19, 2009       

i fixed my own problem. i had to add a Microsoft.Sharepoint reference which was located way at the bottom. Also had to add the 'using Microsoft.SharePoint;' statement.

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].