Print Page | Close Window

Strange bug/error 80040211

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=11388
Printed Date: 29 March 2026 at 4:24pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Strange bug/error 80040211
Posted By: voip-dude
Subject: Strange bug/error 80040211
Date 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 - http://schemas.microsoft.com/cdo/configuration/smtpserver ") = strOutgoingMailServer
           'SMTP port
          ' .Fields(" http://schemas.microsoft.com/cdo/configuration/smtpserverport - http://schemas.microsoft.com/cdo/configuration/smtpserverpor t ")  = 25
           'CDO Port
          ' .Fields(" http://schemas.microsoft.com/cdo/configuration/sendusing - http://schemas.microsoft.com/cdo/configuration/sendusing ") = 2
           'Timeout
          ' .Fields(" http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout - 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)
 


-------------
Tom
http://blog.tmcnet.com/blog/tom-keating - VoIP & Gadget Blog
http://voip-forum.tmcnet.com/voip-forum/forum - VoIP Forum
VoI



Replies:
Posted By: WebWiz-Bruce
Date 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.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: dpyers
Date Posted: 02 August 2004 at 3:10pm
This page talks about that error - http://www.aspfaq.com/show.asp?id=2026 - http://www.aspfaq.com/show.asp?id=2026

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

Lead me not into temptation... I know the short cut, follow me.


Posted By: voip-dude
Date 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.


-------------
Tom
http://blog.tmcnet.com/blog/tom-keating - VoIP & Gadget Blog
http://voip-forum.tmcnet.com/voip-forum/forum - VoIP Forum
VoI


Posted By: ctscott
Date 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 - http://schemas.microsoft.com/cdo/configuration/smtpserver ") = "localhost"  

.Fields(" http://schemas.microsoft.com/cdo/configuration/sendusing - 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.



-------------
______________________
http://www.cfbtrivia.com" rel="nofollow - College Football Trivia


Posted By: rck530
Date 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 - 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!



Posted By: Shatz
Date 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



Posted By: choman
Date 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!


Posted By: WebWiz-Bruce
Date Posted: 30 November 2004 at 7:07am
Maybe a search on MSDN would help find what would course this error.

The change mentioned above usually only works when the SMTP server is installed localy:-

sendusing (1=localhost 2=network)


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: choman
Date Posted: 30 November 2004 at 9:51am

I looked up the error code in MSDN and got the following:

Error Codes

When you use the Microsoft CRM SDK, you call the APIs through the SOAP interface. The following code sample shows how to catch any errors that occur:

Example

[C#]
catch (System.Web.Services.Protocols.SoapException err)
{
strErrorMsg = ("ErrorMessage: " + err.Message + " " +
err.Detail.OuterXml + " Source: " + err.Source );
}

This code produces the following output when an error occurs (formatting added for readability):

Soap Exception Detail (Detail.OuterXml):  
<detail>
<error>
<code>80040220</co de>
<description>
The  user does not hold the necessary privileges.
</description>
<details>
The caller does not hold the privilege with ID:  {A8BFF87F-0DF0-41D4-BABD-F093FAF1E32C}
</details>
&l t;/error>
</detail>

When I looked up the error code, I found this:

IDS_INVALID_ASSOCIATION

80040211

Invalid association.

 
I didn't see this adding a lot of insight.
 
I got the forum to work by simply chaning the SMTP mail server address from the IP address to the FQN domain name. After that, it seems to be working. This kind of stuff scares me, when a seemingless meaningless change makes a system behave different. Confused
 
Any clues? Question


Posted By: WebWiz-Bruce
Date Posted: 30 November 2004 at 11:44am
CDOSYS can act very strangely sometimes.

I had errors before that have fixed themselves just by moving the ASP files to a different virtual folder on the server, even though the code itself stayed the same.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net