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. Querying Sharepoint server from dotnet

Querying Sharepoint server from dotnet

Scheduled Pinned Locked Moved C#
csharpsharepointsysadminsecurityhelp
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.
  • W Offline
    W Offline
    worldspawn
    wrote on last edited by
    #1

    Hi all, first i tried using ADO ConnectionClass connection = new ConnectionClass(); CommandClass command = new CommandClass(); RecordsetClass rs = new RecordsetClass(); connection.Open("Provider=msdaipp.dso;Data Source=http://pandora/radar", null, null, -1); command.ActiveConnection = connection; command.CommandText = @"select ""DAV:displayname"" from scope('deep traversal of ""/radar/documents""')"; ArrayList list = new ArrayList(); try{ rs.Open(command, null, ADODB.CursorTypeEnum.adOpenUnspecified, ADODB.LockTypeEnum.adLockUnspecified, -1); while (!rs.EOF){ list.Add(rs.Fields[0].Value); } } catch(Exception e){ throw new Exception(e.Message, e); } but this always fails with a (an ambigous and unhelpful)exception from a sharepoint dll from the rs.Open line. I was thinking their might be some security problem happening.. but theres no way to know. I've run similar code from my machine in a Word macro and it worked fine. Anyone tried this? [worldspawn]

    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