Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. SharePoint Problem from client pc

SharePoint Problem from client pc

Scheduled Pinned Locked Moved C#
helpcsharpc++sharepointsysadmin
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    manju 123
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups