« Previous Next »

Not Answered Thread: 'Out of Memory' trying to send email with IIS 6.0

Last post 07-10-2009 5:41 AM by Iain. 9 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (10 items)

Sort Posts:

  • 07-06-2009, 8:21 AM

    • Iain
    • Not Ranked
    • Joined on 04-01-2006, 10:47 AM
    • Posts 6

    'Out of Memory' trying to send email with IIS 6.0

    I'm writing some code to send emails via my IIS server on the local machine. (IIS 6.0, Windows Server 2003 R2 x64)

    The code is boiler plate stuff and works on other servers.  The error occurs processing the send command and is:-

    The message could not be sent to the SMTP server. The transport error code was 0x800ccc6c. The server response was 452 4.3.1 Out of memory

    Googling suggests that the problem can be lack of disk space (I have 200 GB free), or permissions on the mailroot directories (I've set all of them to Everyone:Full Control).

    I've checked the metabase and the mailroot is where I would expect it to be (C:\Inetpub\mailroot).

    I've used telnet to connect to the server on port 25 and attempted to send an email the (very) old fashioned way and I get as far as entering the data command and it returns the 452 error.

    So I'm certain it's not my code.  And I have no idea how to progress further.

    Any ideas would be very much appreciated

     

    Iain 

  • 07-06-2009, 8:37 AM In reply to

    Re: 'Out of Memory' trying to send email with IIS 6.0

    Hi,

    I'd suggest running Process Monitor to see what is happening at the file system level when this request fails. A 452 return code does indeed suggest a problem with storage space but it could be permissions.

    Regards,

    Paul Lynch | www.iisadmin.co.uk
  • 07-06-2009, 9:11 AM In reply to

    • Iain
    • Not Ranked
    • Joined on 04-01-2006, 10:47 AM
    • Posts 6

    Re: 'Out of Memory' trying to send email with IIS 6.0

    Paul Lynch:
    I'd suggest running Process Monitor to see what is happening

     

    Process monitor appears to be telling me that IIS (I'm looking at the inetinfo process) that it wants to talk to exchange, but can't find it

    Needless to say I have no exchange servers running, nor have I had (knowingly!) on any of my machines for a good decade.

     Do you have any idea what this means?  I certainly don't!

     

    Iain 

    14:04:28.0013526 inetinfo.exe 1328 RegOpenKey HKU\S-1-5-18_Classes NAME NOT FOUND 
    14:04:28.0013741 inetinfo.exe 1328 RegOpenKey HKCR SUCCESS 
    14:04:28.0013934 inetinfo.exe 1328 RegOpenKey HKCR\Exchange.NtfsDrv NAME NOT FOUND 
    14:04:28.0014273 inetinfo.exe 1328 RegCloseKey HKCR SUCCESS 
    14:04:28.0014472 inetinfo.exe 1328 RegOpenKey HKU\S-1-5-18_Classes NAME NOT FOUND 
    14:04:28.0014592 inetinfo.exe 1328 RegOpenKey HKCR SUCCESS 
    14:04:28.0014734 inetinfo.exe 1328 RegOpenKey HKCR\Exchange.NtfsDrv NAME NOT FOUND 
    14:04:28.0014873 inetinfo.exe 1328 RegCloseKey HKCR SUCCESS 
    14:04:28.0015032 inetinfo.exe 1328 RegOpenKey HKU\S-1-5-18_Classes NAME NOT FOUND 
    14:04:28.0015152 inetinfo.exe 1328 RegOpenKey HKCR SUCCESS 
    14:04:28.0015286 inetinfo.exe 1328 RegOpenKey HKCR\Exchange.NtfsDrv NAME NOT FOUND 
    14:04:28.0015413 inetinfo.exe 1328 RegCloseKey HKCR SUCCESS 
    14:04:28.0015578 inetinfo.exe 1328 RegOpenKey HKU\S-1-5-18_Classes NAME NOT FOUND 
    14:04:28.0015693 inetinfo.exe 1328 RegOpenKey HKCR SUCCESS 
    14:04:28.0015828 inetinfo.exe 1328 RegOpenKey HKCR\Exchange.NtfsDrv NAME NOT FOUND 
    14:04:28.0015953 inetinfo.exe 1328 RegCloseKey HKCR SUCCESS 
    14:04:28.0017214 inetinfo.exe 1328 QueryOpen C:\WINDOWS\system32\Exchange.NtfsDrv NAME NOT FOUND 

  • 07-06-2009, 10:39 AM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: 'Out of Memory' trying to send email with IIS 6.0

    Iain:
    The code is boiler plate stuff and works on other servers.  The error occurs processing the send command

    What code are you using?

  • 07-06-2009, 11:02 AM In reply to

    • Iain
    • Not Ranked
    • Joined on 04-01-2006, 10:47 AM
    • Posts 6

    Re: 'Out of Memory' trying to send email with IIS 6.0

    tomkmvp:
    What code are you using?

    MailMessage ConfirmationMail = new MailMessage();

    ConfirmationMail.To = "iain@SomeWhere.co.uk";

    ConfirmationMail.From = "Admin@SomewhereElse.com";

    ConfirmationMail.Subject = "A Test";

    ConfirmationMail.BodyFormat = MailFormat.Text;ConfirmationMail.BodyEncoding = Encoding.UTF8;

     

    ConfirmationMail.Body = "Test Message";

    SmtpMail.SmtpServer = "127.0.0.1";

    SmtpMail.Send(ConfirmationMail);

    I know SmtpMail is deprecated, but essentially the same code is running on my live serve (just my dev box that has problems).

    I've also uploaded exactly this code (well with real emails :) ) to my live server and it seems to work just fine

     Iain

  • 07-08-2009, 12:31 PM In reply to

    • Iain
    • Not Ranked
    • Joined on 04-01-2006, 10:47 AM
    • Posts 6

    Re: 'Out of Memory' trying to send email with IIS 6.0

    Does anyone have any insight into why IIS appears to be searching for Exchange when sending SMTP emails and what I can do to stop it?

  • 07-08-2009, 1:35 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: 'Out of Memory' trying to send email with IIS 6.0

    It's not IIS, it's ASP.NET and your code - how do you declare your SMTPMail object?

  • 07-08-2009, 3:40 PM In reply to

    • Iain
    • Not Ranked
    • Joined on 04-01-2006, 10:47 AM
    • Posts 6

    Re: 'Out of Memory' trying to send email with IIS 6.0

    tomkmvp:
    it's ASP.NET and your code

    Hi Tom.  I get this when use raw SMTP protocol with telnet to the local IIS server.  Which is why I say it's NOT my code (that an the same program works on another machine).

    in Command window I

    telnet localhost 25

    and get the SMTP prompt

    then

    helo contuso.com

    mail from:me@myemail.com

    rcpt to:him@hisemail.com

    data

    When I enter data <return> I get the 452 4.3.1 Out of Memory error,

    It has nothing to do with dot net or asp.net at all

    Unfortunately, I don't know how to get any further with my diagnostics!

    Iain

  • 07-08-2009, 3:57 PM In reply to

    • tomkmvp
    • Top 10 Contributor
    • Joined on 03-20-2003, 10:27 AM
    • Central NJ
    • Posts 6,238
    • IIS MVPs

    Re: 'Out of Memory' trying to send email with IIS 6.0

    OK - I would agree with you. 

    Could you compare the registry settings on each server?

    Or how about checking the MetaBase for SMTP configuration info?

  • 07-10-2009, 5:41 AM In reply to

    • Iain
    • Not Ranked
    • Joined on 04-01-2006, 10:47 AM
    • Posts 6

    Re: 'Out of Memory' trying to send email with IIS 6.0

    Thanks, Tom.

     I guess that's where we're at.

    Where should I look for registry keys?  As mentioned in an earlier email the error seems to be raised after it fails to find an Exchange driver.  Does this give any clues?

     Cheers

Page 1 of 1 (10 items)
Microsoft Communities