2011-01-19 22 views
1

當我嘗試在Silverlight應用程序中加載Lync控件時,出現以下錯誤:客戶端不受信任。當我調試沒有相應的Web項目的Silverlight應用程序時,此錯誤不會顯示。Silverlight中的Lync錯誤:客戶端不可信

這是產生錯誤代碼:

LyncClient l = LyncClient.GetClient(); 

這是錯誤:

AutomationServerException was unhandled by user code 
Client is not trusted 

我必須做的?

回答

5

此錯誤通常發生是因爲您的Silverlight應用程序正在運行的網站不在「可信站點」瀏覽器區域中。添加到可信站點應該修復它。

編輯:的演練here狀態:

Security settings for Microsoft Lync 2010 SDK applications require that the host URL for Lync Control Silverlight applications be added to the Trusted sites list in Microsoft Internet Explorer. For information about adding to the Trusted sites list, see Working with Internet Explorer 6 Security Settings .

+0

它工作!謝謝=) – 2011-01-19 15:01:23

-2

可能的原因可能是因爲安全性。右鍵單擊dll和goto屬性並設置解鎖。

+0

哪些DLL?所有的Lync DLL在Visual Studio中? – 2011-01-19 12:04:25