ユーザー資格情報を渡してメールを取得する必要がある Web サイト (ASP.Net) を構成する方法を理解しようとしています。
アプリケーション プールの構成に応じて、さまざまな種類のエラーが発生します。完全な方法は何ですか? つまり、コード + 構成 ;o)
ユーザーとパスワードを書きたくないが、Windows認証を介して取得したい
ありがとう
コード:
Service = new ExchangeService(ExchangeVersion.Exchange2010_SP2)
{
Url =
new Uri(
"https://xxx/yyy.asmx"),
//UseDefaultCredentials = true doesnt help
};
var view = new ItemView(1820);
// Find the first email message in the Inbox that has attachments. This results
FindItemsResults<Item> results = Service.FindItems(folderName, view);
//Here I get the error 401