MOSS2007(3) プロキシ経由のRSSビューアWebパーツでエラー
Posted
2008年3月6日 17:31
投稿者
hiyamuta
社内で稼動しているMOSS2007のページにRSSビューアWebパーツを追加して、RSSフィードのURLを指定してOKボタンを押すと、Webパーツの画面に
要求の処理中に、予期しないエラーが発生しました。ログで詳細を確認して、問題を修正してください
(英語版だと An unexpected error occurred processing your request. Check the logs for details and correct the problem.)
と表示されます。
MOSS2007のトレースログファイル(デフォルトの状態では \Program Files\Common Files\Microsoft Shared\web server extensions\12\logs\サーバ名-yyyymmdd-0000.log)を開いて RssWebPart を検索すると、
リモート名を解決できませんでした。 : 'RSSのURL'
(英語版だとRssWebPart:Exception handed to HandleRuntimeException....remote name could not be resolved: ‘RSS URL’)
と書いてあります。
Digital Dashboard 時代から似た問題で苦労している経験から、プロキシが絡んでいそうな気がして調べてみました。
web.config を変更すると解決するようです(iisreset不要)
--- 変更前 ---
<system.net>
<defaultProxy>
<proxy autoDetect="true" />
</defaultProxy>
</system.net>
--- 変更後 ---
<system.net>
<defaultProxy>
<proxy usesystemdefault="False" proxyaddress="http://your-proxy-name.domain.com:port-number-if-any" bypassonlocal="True" autoDetect="False" />
</defaultProxy>
</system.net>
参考:
WebException , the remote name could not be resolved
http://forums.asp.net/t/992641.aspx
参考になりました。でもusesystemdefaultがスペルミスです(^^;
Proxy server settings for SharePoint 2007
http://geekswithblogs.net/hinshelm/archive/2007/10/24/Proxy-server-settings-for-SharePoint-2007.aspx