Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Strange bug/error 80040211
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Strange bug/error 80040211

 Post Reply Post Reply Page  12>
Author
voip-dude View Drop Down
Newbie
Newbie


Joined: 02 August 2004
Location: United States
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote voip-dude Quote  Post ReplyReply Direct Link To This Post Topic: Strange bug/error 80040211
    Posted: 02 August 2004 at 9:43am
Ok, I migrated my 7.7 forums from Win2K to another machine running Win2K3 and the new 7.9 forums - both using SQL Server and now I'm using the CDOSYS control instead of CDONTS.
 
Any time an email notification on the new server is sent out or I test the "mass email members" feature I get this error:
 
Error 80040211
/forum/functions/functions_send_mail.asp
line 136  (the .Send command for CDOSYS function)
 
I did some troubleshooting and commented out some code in functions_send_mail.asp that seemed to be the cause of the problem.  Once I commented the code below, the email feature worked fine.  So my question is why isn't the code working?  A developer friend of mine said this code isn't critical, but I just want to make sure permissions/security or something else on my IIS Server isn't messed up.
 
Here's the commented code in functions_send_mail.asp: (starts at line 102)
       'Set and update fields properties
       'With objCDOSYSCon
           'Out going SMTP server
          ' .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strOutgoingMailServer
           'SMTP port
          ' .Fields(" http://schemas.microsoft.com/cdo/configuration/smtpserverpor t")  = 25
           'CDO Port
          ' .Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
           'Timeout
          ' .Fields(" http://schemas.microsoft.com/cdo/configuration/smtpconnectio ntimeout") = 60
          ' .Fields.Update
          'End With
 
    'Update the CDOSYS Configuration
    'Set objCDOSYSMail.Configuration = objCDOSYSCon
 
Maybe the new version of IIS 6.0 is "locked" down more and I need to open permissions on something? (I have not used the lockdown tool, and this PC is 100% freshly installed Win2K3)
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2004 at 2:07pm
Could it be that your SMTP server requires authentication?

Try looking up the error on MSDN or Google releating to CDOSYS to see if that sheds any light on it.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2004 at 3:10pm
This page talks about that error - http://www.aspfaq.com/show.asp?id=2026

Lead me not into temptation... I know the short cut, follow me.
Back to Top
voip-dude View Drop Down
Newbie
Newbie


Joined: 02 August 2004
Location: United States
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote voip-dude Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2004 at 4:59pm
Quote Could it be that your SMTP server requires authentication?

Nope, I'm allowing Anonymous and Windows Authentication access to the SMTP service.
 
The email works fine once I comment out the code.  Just seems odd to me.  I'll try google again, but figured someone here using Win2K3 with WebWiz forums encountered this.
 
If anyone else has encountered this or has some theories, feel free to shed some light.
 
Thanks.
Back to Top
ctscott View Drop Down
Senior Member
Senior Member


Joined: 27 May 2003
Location: United States
Status: Offline
Points: 246
Post Options Post Options   Thanks (0) Thanks(0)   Quote ctscott Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2004 at 11:52am

if your smtp service is on your webserver you may want to try changing these values

Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"  

.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1  instead of = 2.

changing the value to 1 uses local service, a value of 2 uses network service.

______________________
College Football Trivia
Back to Top
rck530 View Drop Down
Newbie
Newbie


Joined: 25 July 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote rck530 Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2004 at 11:51pm

Hey ctscott,

Great fix! I was having this problem with my 2k3 server.  I simply changed what you listed... 

.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1  instead of = 2.

I kept the str variable because I didnt really want to hardcode localhost, but it works now!

thanks!

Back to Top
Shatz View Drop Down
Newbie
Newbie


Joined: 30 October 2004
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shatz Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2004 at 6:19pm

FWIW....I tried the above and it worked fine for me as well.  My web site is running on Windows 2003 Server.  I would suspect a "virtual" smtp server is what makes it happen...had that on W2K if I remember right.

Take Care,
Shatz

Back to Top
choman View Drop Down
Newbie
Newbie
Avatar

Joined: 30 November 2004
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote choman Quote  Post ReplyReply Direct Link To This Post Posted: 30 November 2004 at 6:26am
I'm using Web Wiz internally (within my company) to share information with field reps. We really like the application. I'm getting the same error on my Win 2003 Server as this post started with:
error '80040211'

/xosboard/functions/functions_send_mail.asp, line 136

We're using CDOSYS and the SMTP server is on another machine and doesn't require explicit authentication (uses Windows Authentication). The error message didn't happen until recently. We now get the error when posting and email notifications are not being dispatched on watched topics. I also can't use private messenger. We tried the commenting out patch listed above, but it didn't make a difference.
 
Help!
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.