2
當我使用麻煩在C#中使用的GetResponse用於Windows Phone的
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
我得到一個錯誤消息,指出
'System.Net.HttpWebRequest' does not contain a definition for 'GetResponse' and no extension method 'GetResponse' accepting a first argument of type 'System.Net.HttpWebRequest' could be found (are you missing a using directive or an assembly reference?
我已經添加了以下參考,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using PhoneApp23.Resources;
using System.IO;
using System.Text;
using System.Threading;
我錯過了什麼? 或者我該怎麼做才能正常工作!
可能重複http://stackoverflow.com/questions/5971866/cant-find-httpwebrequest -getresponse功能於WP7項目) – JMK