Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

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

  Asked By: Naman    Date: Oct 19    Category: Sharepoint    Views: 2442

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?



1 Answer Found

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

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.