SharePoint Problem from client pc
-
Hi all.. I have created a dll in c# for crawling the documents from sharepoint and to get the modified date,created Date..etc.. When i run it from server where sharepoint is installed its getting the created date and modified Date.... But when i run it from client pc...It is giving Debug Error.... when i comment this code....which i used for getting created date and modified date... the code is
using (SPSite RootSite = new SPSite(listPath))
{
//RootSite.AllowUnsafeUpdates = true;
Console.WriteLine("1Entered SPSIte path");
using (SPWeb SiteCollection = RootSite.OpenWeb())
{
string path = listPath;// RootSite.MakeFullUrl(PageName);
SPFile file = SiteCollection.GetFile(path);
string TimeCreated = file.TimeCreated.ToLongDateString();
Console.WriteLine("1.1: Created Date is :" + TimeCreated);
}}
when i comment this code it works fine....is there any problem in it...but the same code works fine in server pc...I am totally confused..please give some idea......I am totally new to sharepoint and c# manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju