SmtpMail works for logged on user but not asp.net on Windows XP

Discussion in 'ASP .Net Security' started by John Lau, Sep 17, 2004.

  1. John Lau

    John Lau Guest

    Hello,

    I am sending an email using System.Web.Mail.SmtpMail to send mail. This
    works fine when I am debugging in VS.Net, but fails when I am running from a
    browser. The error message is:

    Cannot open log for source {0}. You may not have write access.

    When I comment out the SmtpMail.Send statement, the error goes away. What
    permissions am I missing?

    Any help would be greatly appreciated.

    Regards,
    John
     
    John Lau, Sep 17, 2004
    #1
    1. Advertising

  2. John Lau

    John Lau Guest

    Hey,

    It was because my SmtpServer was not set properly. What a strange error.

    John

    "John Lau" <> wrote in message
    news:...
    > Hello,
    >
    > I am sending an email using System.Web.Mail.SmtpMail to send mail. This
    > works fine when I am debugging in VS.Net, but fails when I am running from
    > a browser. The error message is:
    >
    > Cannot open log for source {0}. You may not have write access.
    >
    > When I comment out the SmtpMail.Send statement, the error goes away. What
    > permissions am I missing?
    >
    > Any help would be greatly appreciated.
    >
    > Regards,
    > John
    >
     
    John Lau, Sep 17, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. keithb
    Replies:
    0
    Views:
    637
    keithb
    Feb 16, 2006
  2. David Wang
    Replies:
    0
    Views:
    735
    David Wang
    Dec 1, 2006
  3. Replies:
    1
    Views:
    951
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Apr 12, 2007
  4. Mufasa
    Replies:
    2
    Views:
    341
    Michael Nemtsev
    Apr 19, 2007
  5. mvr
    Replies:
    5
    Views:
    551
    Aaron Bertrand [SQL Server MVP]
    May 16, 2006
Loading...

Share This Page