Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Rule.dll & Inbox Entry error


Message #1 by Akshay Shah <akshays@g...> on Fri, 2 Nov 2001 19:48:00 +0530
Dear friends, 

When I am running this code 

Set objInbox = objCDOSession.GetDefaultFolder(1) 

set colRules = server.CreateObject("MSExchange.Rules") 

colRules.Folder = objInbox 

I get following error at 

" colRules.Folder =objInbox " 

statement...for few exchange users

 ------------------------------------------------------------------------ 

-2147221241006~ASP 0177~Server.CreateObject Failed~

The operation completed successfully. & in when I run the same code in VB

for same user I get .. Method 'Folder' of Object 'Rules' failed -2147221241

As suggested by our friend Sweber of CDOLIVE.com , i used ERR.clear to

confirm that error occures only for certain exchange users & that too when I

am assigning Inbox to Rules Object.. I also went on to check if there is any

problem with those particular mailboxes..but found they are exactly like

other mailboxes for which i could set up rules in all respects..(e.g i could

setup rules from outlook rule wizard even for these few mailboxes which fail

with my rule.dll code) In brief....assigning Inbox to the Rules Object for

certain users throws error.... How do I go about it..?Waiting for ur

suggestions.... 

Thanks,

Akshay

Message #2 by "Siegfried Weber" <sweber@c...> on Fri, 2 Nov 2001 15:34:24 +0100
Can you *please* cut cross posting this issue to several mailing lists?



Two of your colleagues (Govardhan Nandi and Shailesh Katti) have already

posted this to the aspexchangeoutlook@a... mailing list and

I'm working with them to resolve it there.



Thanks!



<Siegfried />



> -----Original Message-----

> From: Akshay Shah [mailto:akshays@g...]

> Sent: Friday, November 02, 2001 3:18 PM

> To: ASP CDO

> Subject: [asp_cdo] Rule.dll & Inbox Entry error

>

> Dear friends,

> When I am running this code

> Set objInbox =3D objCDOSession.GetDefaultFolder(1)

> set colRules =3D server.CreateObject("MSExchange.Rules")

> colRules.Folder =3D objInbox

> I get following error at

> " colRules.Folder =3DobjInbox "

> statement...for few exchange users

>

------------------------------------------------------------------------

> -2147221241006~ASP 0177~Server.CreateObject Failed~

> The operation completed successfully. & in when I run the same code in

VB

> for same user I get .. Method 'Folder' of Object 'Rules' failed -

> 2147221241

> As suggested by our friend Sweber of CDOLIVE.com , i used ERR.clear to

> confirm that error occures only for certain exchange users & that too

when

> I

> am assigning Inbox to Rules Object.. I also went on to check if there

is

> any

> problem with those particular mailboxes..but found they are exactly

like

> other mailboxes for which i could set up rules in all respects..(e.g i

> could

> setup rules from outlook rule wizard even for these few mailboxes

which

> fail

> with my rule.dll code) In brief....assigning Inbox to the Rules Object

for

> certain users throws error.... How do I go about it..?Waiting for ur

> suggestions....

> Thanks,

> Akshay

>

>




$subst('Email.Unsub')




  Return to Index