Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
GeneralRe: Quick file size checker Pin
eggie529-Jul-03 21:32
eggie529-Jul-03 21:32 
GeneralI have a interesting question! Pin
JeffSayHi29-Jul-03 16:03
JeffSayHi29-Jul-03 16:03 
GeneralRe: I have a interesting question! Pin
Mazdak29-Jul-03 21:06
Mazdak29-Jul-03 21:06 
GeneralRe: I have a interesting question! Pin
Ista30-Jul-03 14:45
Ista30-Jul-03 14:45 
Generaloverride root/parent node in tree menu Pin
Sonia Jaiswal29-Jul-03 15:31
Sonia Jaiswal29-Jul-03 15:31 
GeneralRe: override root/parent node in tree menu Pin
StealthyMark30-Jul-03 17:57
StealthyMark30-Jul-03 17:57 
GeneralRe: override root/parent node in tree menu Pin
Sonia Jaiswal30-Jul-03 22:04
Sonia Jaiswal30-Jul-03 22:04 
GeneralQuerying Sharepoint server from dotnet Pin
worldspawn29-Jul-03 13:50
worldspawn29-Jul-03 13:50 
Hi all,

first i tried using ADO
<br />
ConnectionClass connection = new ConnectionClass();<br />
CommandClass command = new CommandClass();<br />
RecordsetClass rs = new RecordsetClass();<br />
<br />
connection.Open("Provider=msdaipp.dso;Data Source=http://pandora/radar", null, null, -1);<br />
<br />
command.ActiveConnection = connection;<br />
command.CommandText = @"select ""DAV:displayname"" from scope('deep traversal of ""/radar/documents""')";<br />
<br />
ArrayList list = new ArrayList();<br />
try{<br />
	rs.Open(command, null, ADODB.CursorTypeEnum.adOpenUnspecified, ADODB.LockTypeEnum.adLockUnspecified, -1);<br />
<br />
	while (!rs.EOF){<br />
		list.Add(rs.Fields[0].Value);<br />
	}<br />
}<br />
catch(Exception e){<br />
	throw new Exception(e.Message, e);<br />
}<br />


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]
GeneralAutomation Pin
Nivitha29-Jul-03 12:30
Nivitha29-Jul-03 12:30 
GeneralRSA Question Pin
jtmtv1829-Jul-03 12:15
jtmtv1829-Jul-03 12:15 
GeneralRe: RSA Question Pin
Kastro30-Jul-03 7:16
Kastro30-Jul-03 7:16 
GeneralPrinting Access Database labels C# Pin
Anonymous29-Jul-03 12:12
Anonymous29-Jul-03 12:12 
GeneralRe: Printing Access Database labels C# Pin
Ista30-Jul-03 4:23
Ista30-Jul-03 4:23 
GeneralDeployment Project Pin
kgoodrich29-Jul-03 10:12
kgoodrich29-Jul-03 10:12 
GeneralPassing XmlResolver to Transform() method Pin
kyledunn29-Jul-03 10:08
kyledunn29-Jul-03 10:08 
GeneralRe: Passing XmlResolver to Transform() method Pin
Nick Parker29-Jul-03 12:52
protectorNick Parker29-Jul-03 12:52 
GeneralRe: Passing XmlResolver to Transform() method Pin
kyledunn7-Aug-03 8:39
kyledunn7-Aug-03 8:39 
GeneralCombo binding Pin
Ista29-Jul-03 9:10
Ista29-Jul-03 9:10 
Questiondatagrid how to disable new row?? Pin
mdolby29-Jul-03 9:02
mdolby29-Jul-03 9:02 
AnswerRe: datagrid how to disable new row?? Pin
Ista29-Jul-03 9:11
Ista29-Jul-03 9:11 
Generalwhich installer Pin
mdolby29-Jul-03 8:54
mdolby29-Jul-03 8:54 
GeneralRe: which installer Pin
Alex Korchemniy29-Jul-03 12:45
Alex Korchemniy29-Jul-03 12:45 
GeneralComboBox limiting editing Pin
Ista29-Jul-03 5:52
Ista29-Jul-03 5:52 
GeneralRe: ComboBox limiting editing Pin
Zachery29-Jul-03 6:03
Zachery29-Jul-03 6:03 
GeneralRe: ComboBox limiting editing Pin
Ista29-Jul-03 6:08
Ista29-Jul-03 6:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.