473,395 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

public folder permissions using exoledb

Hi!

I'm trying to use exoledb to apply permissions to a public folder.

My code looks like:

ADORecord = new ADODB.RecordClass();
ADOConn = new ADODB.ConnectionClass();

ADOConn.Provider = "ExOLEDB.DataSource";

ADOConn.Open(folderURL,Server_usr,Server_pwd,0);

ADORecord.Open(folderURL, ADOConn,
ADODB.ConnectModeEnum.adModeReadWrite,
ADODB.RecordCreateOptionsEnum.adFailIfNotExists,
ADODB.RecordOpenOptionsEnum.adOpenSource,
Server_usr, Server_pwd);

ADOFlds = ADORecord.Fields;

StringWriter sw = new StringWriter();
XmlTextWriter xw = new XmlTextWriter(sw);
xmlDoc.WriteTo(xw);
string XMLDesc = sw.ToString();

ADOFlds["http://schemas.microsoft.com/exchange/security/descriptor"].Value
= XMLDesc;
ADOFlds.Update();

When the last line is reached I receive the error: "The parameter is
incorrect."

Does anyone know what I'm doing wrong?

Help is appreciated

Morten
Nov 17 '05 #1
1 1529
Morten,

Does the error occur on the call to Update, or when you set the field?
Also, are you sure that the XML that you are passing is valid for that
field?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Morten" <mo**************@hotmail.com> wrote in message
news:uL**************@TK2MSFTNGP10.phx.gbl...
Hi!

I'm trying to use exoledb to apply permissions to a public folder.

My code looks like:

ADORecord = new ADODB.RecordClass();
ADOConn = new ADODB.ConnectionClass();

ADOConn.Provider = "ExOLEDB.DataSource";

ADOConn.Open(folderURL,Server_usr,Server_pwd,0);

ADORecord.Open(folderURL, ADOConn,
ADODB.ConnectModeEnum.adModeReadWrite,
ADODB.RecordCreateOptionsEnum.adFailIfNotExists,
ADODB.RecordOpenOptionsEnum.adOpenSource,
Server_usr, Server_pwd);

ADOFlds = ADORecord.Fields;

StringWriter sw = new StringWriter();
XmlTextWriter xw = new XmlTextWriter(sw);
xmlDoc.WriteTo(xw);
string XMLDesc = sw.ToString();
ADOFlds["http://schemas.microsoft.com/exchange/security/descriptor"].Value
= XMLDesc;
ADOFlds.Update();

When the last line is reached I receive the error: "The parameter is
incorrect."

Does anyone know what I'm doing wrong?

Help is appreciated

Morten

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Tom | last post by:
Can anyone give me any advice on how to secure a folder on a network server so that documents in the folder can only be opened through an Access database or by the database admin. I need to store...
1
by: Kim Nørby Andersen | last post by:
I'm in a situation, where i'm supposed to develop a windows service, connecting to an external source, and insert new contact persons to an Exchange public folder. Everything is going well, until I...
1
by: Morten | last post by:
Hi! Has anyone managed to set permissions on a public folder via webdav? I'm trying to create a folder and set some initial permissions once it's created. Just a small example would be very...
5
by: Khalique | last post by:
Hi everyone, I Hope that someone will be able to give me a hint to the solution to my problem. I have developed a web service (vb.net) that needs to access the folders / files and copy files to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.