web.config ファイルでユーザー名とパスワードを指定すると、ASP.NET Web ページのエラーを Windows イベント ログ、SQL Server データベース、および電子メール (Microsoft Exchange) に記録するためのヘルス モニタリングを正常にセットアップしました。ただし、ユーザー名とパスワードの指定からdefaultCredentials="true"
web.config への指定に変更すると、電子メールを生成しようとすると、Windows イベント ログに次のエラー メッセージが表示されます。
System.Web.HttpException (0x80004005): Unable to send out an e-mail to the SMTP
server. Please ensure that the server specified in the <smtpMail> section is
valid. ---> System.Net.Mail.SmtpException: Mailbox unavailable. The server
response was: 5.7.1 Client does not have permissions to send as this sender
企業ドメインで Windows Vista を実行しています。私の Windows ログインは、Microsoft Exchange ログインと同じです。ログイン資格情報を web.config ファイルで明示的に指定すると機能するのに、使用するとdefaultCredentials="true"
機能しない理由について、誰かが洞察を提供できますか? ユーザー名とパスワードを web.config ファイルに保存しなくても、healthMonitoring を介して自動メールを送信できる既知の解決策はありますか?