2015-09-16 29 views
0

我開發了Windows Phone 8.1應用程序,其中我從一臺網絡攝像機接收數據..錯誤HRESULT E_FAIL已經從COM組件的調用返回。(WebResponse類)

System.Net.HttpWebRequest req = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(uri); 
req.Credentials = new System.Net.NetworkCredential("admin", "12345"); 
req.Method = "POST"; 
req.ContentType = "image/jpeg"; 
using (var response = await req.GetResponseAsync()) 
{ 
    ///Some Logic 
} 

和我得到這HRESULT E_FAIL has been returned from a call to a COM component.錯誤迴應

連接沒有什麼問題,我測試的Windows應用商店應用程序的相同邏輯,它的工作完美。

我檢查了清單中所有需要的功能。

而且我從下面的位置刪除項目緩存:

C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplatesCache

,並重新建立使用devenv.exe /setup

,但沒有運氣緩存!

回答

0

檢查您的XAML我之間的空間 「{

看到

fontWeight設置=」{綁定路徑= SatisfactionSurveyStyles.SelectedListBoxItemFontWeight源= {StaticResource的LocalizationFiles}}」

,它墜毀整個應用程序,每次我在該頁上的任何服務電話

+0

http://stackoverflow.com/questions/33550709/windows-phone-8-service-call-causes-error-hresult-e-fail-has-been-返回-從/ 33550710#33550710 – MattyMerrix

相關問題