J
Jerry
Code:
ADODB.RecordClass userRec = new ADODB.RecordClass();
ADODB.ConnectionClass userConn = new ADODB.ConnectionClass();
string strDataURL = (string) Request.QueryString["DataURL"];
try
{
userConn.Provider = "ExOledb.DataSource";
userConn.Open(strDataURL, "UserWithPrives", "Password", -1);
try
{
userRec.Open(strDataURL, userConn,
ADODB.ConnectModeEnum.adModeShareDenyWrite,
ADODB.RecordCreateOptionsEnum.adOpenIfExists,
ADODB.RecordOpenOptionsEnum.adOpenRecordUnspecified,
"UserWithPrives",
"Password");
foreach(ADODB.Field currField in userRec.Fields)
{
try
{
Response.Write(currField.Name + " : " + currField.Value +
"<BR>" +
Environment.NewLine);
}
catch(Exception Ex)
{
Response.Write("Field Error: " + Ex.Message + "<BR>" +
Environment.NewLine);
}
}
}
Rest of the code is inmaterial to the problem.
Connection opens fine as well as record. The User with privs can read
the mailbox and has all the privs necessary. I have even given asp and
ADODB.dll the priv.
When I look at the field object the Name I can see is corect but when
I sample the Value it has the following entry:
-[ADODB.InternalField] {ADODB.InternalField} ADODB.InternalField
System.Object {ADODB.InternalField} System.Object
ActualSize <error: an exception of type:
{System.Runtime.InteropServices.COMException}
occurred> int
Attributes 0 int
DataFormat <undefined value> System.Object
DefinedSize 0 int
+ m_field {System.__ComObject} ADODB.Field
+ m_fields {ADODB.InternalFields} ADODB.InternalFields
Name "urn:schemas:mailheader
osting-version" string
NumericScale 0 byte
OriginalValue <undefined value> System.Object
Precision 0 byte
+ Properties {ADODB.InternalProperties} ADODB.Properties
Status 8 int
Type adEmpty ADODB.DataTypeEnum
UnderlyingValue <undefined value> System.Object
Value <error: an exception of type:
{System.Runtime.InteropServices.COMException} occurred>
System.Object
Desparate for an answere.
ADODB.RecordClass userRec = new ADODB.RecordClass();
ADODB.ConnectionClass userConn = new ADODB.ConnectionClass();
string strDataURL = (string) Request.QueryString["DataURL"];
try
{
userConn.Provider = "ExOledb.DataSource";
userConn.Open(strDataURL, "UserWithPrives", "Password", -1);
try
{
userRec.Open(strDataURL, userConn,
ADODB.ConnectModeEnum.adModeShareDenyWrite,
ADODB.RecordCreateOptionsEnum.adOpenIfExists,
ADODB.RecordOpenOptionsEnum.adOpenRecordUnspecified,
"UserWithPrives",
"Password");
foreach(ADODB.Field currField in userRec.Fields)
{
try
{
Response.Write(currField.Name + " : " + currField.Value +
"<BR>" +
Environment.NewLine);
}
catch(Exception Ex)
{
Response.Write("Field Error: " + Ex.Message + "<BR>" +
Environment.NewLine);
}
}
}
Rest of the code is inmaterial to the problem.
Connection opens fine as well as record. The User with privs can read
the mailbox and has all the privs necessary. I have even given asp and
ADODB.dll the priv.
When I look at the field object the Name I can see is corect but when
I sample the Value it has the following entry:
-[ADODB.InternalField] {ADODB.InternalField} ADODB.InternalField
System.Object {ADODB.InternalField} System.Object
ActualSize <error: an exception of type:
{System.Runtime.InteropServices.COMException}
occurred> int
Attributes 0 int
DataFormat <undefined value> System.Object
DefinedSize 0 int
+ m_field {System.__ComObject} ADODB.Field
+ m_fields {ADODB.InternalFields} ADODB.InternalFields
Name "urn:schemas:mailheader

NumericScale 0 byte
OriginalValue <undefined value> System.Object
Precision 0 byte
+ Properties {ADODB.InternalProperties} ADODB.Properties
Status 8 int
Type adEmpty ADODB.DataTypeEnum
UnderlyingValue <undefined value> System.Object
Value <error: an exception of type:
{System.Runtime.InteropServices.COMException} occurred>
System.Object
Desparate for an answere.