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

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

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

    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 Guest

  2. Similar Questions and Discussions

    1. [ANNOUNCE] Workaround Technote : Problems running Flash Player 8.0.24.0ActiveX control after installation when logged in as Restricted User on Windows
      We've got a workaround technote in place for admins affected by the restricted user issue with Flash Player 8.0.24.0. ...
    2. I want asp.net to act as a different user than the one that is currently logged on IS THIS POSSIBLE!!!
      Hi James, were you able to resolve your problem? I'd be interested to know how you achieved this. Basically I have the same set up as you. I want...
    3. Check if user is already logged in
      Hi, i have a website , on wich users have to log in credentials are checked against mysql db some session vars are set during login for use...
    4. Logged in user?
      I need some asp code that can give me the user that is logged on to the PC, can anyone help? Regards Betina
    5. SMTPMAIL on Windows Server 2003
      We just moved an ASP.Net app to a Windows 2003 Server, and the SMTPMail fails now with the following message: ...
  3. #2

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

    Hey,

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

    John

    "John Lau" <johnlau@olc.ubc.ca> wrote in message
    news:eZ6dOVEnEHA.3992@TK2MSFTNGP15.phx.gbl...
    > 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 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139