2011-04-13 23 views
2

我們試圖從Silverlight應用程序中消耗自己的web服務,我們始終得到這個錯誤:Silverlight應用程序無法訪問clientaccesspolicy.xml和crossdomain.xml的使用使用HTTP錯誤401

An error occurred while trying to make a request to URI 'http://blablabla:7777/blabla.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details.

搜索後互聯網我們非常非常沮喪......沒有任何東西可以工作,但最終我們從一個網站獲得瞭解決方案,這個網站從一個非常着名的網站轉換爲英文:-)))。根據這些信息,我們必須去IIS,打開我們的網站,然後選擇身份驗證 - >選擇匿名身份驗證 - >在右上角選擇編輯... - >並確保設置匿名用戶的身份以:應用程序池的標識(希望這是從德語到英語的正確翻譯 - 它應該是第二個單選按鈕)。

我希望這會幫助那裏的人!

感謝您的閱讀! Harry

回答

0

對於我們來說,這是一個解決方案 - 互聯網上的很多站點都告誡你注意,你的根目錄中有clientaccesspolicy.xml和crossdomain.xml文件,我們認爲我們做了錯誤的事情,但是我們沒有。如果遇到同樣的問題,也許你會嘗試這個解決方案。

相關問題