我正在使用visual studio和windows phone 7开发智能手机ftp客户端。
我面临着一些错误,比如
未声明WebRequestMethods.ftp.ListDirectory request.Method=错误1 'WebRequestMethods‘。由于其保护水平,它可能无法进入。C:\User\Zaheer\Documents\Visual 2010\Projects\PhoneApp4\PhoneApp4\MainPage.xaml.vb 43 30 PhoneApp4
response = CType(request.GetWebResponse(),WebResponse) Error 2 'GetWebResponse‘不是System.Net.WebRequest的成员。C:\User\Zaheer\Documents\Visual 2010\Projects\PhoneApp4\PhoneApp4\MainPage.xaml.vb 37 30 PhoneApp4
发布于 2013-07-01 11:48:31
WebRequestMethods和WebRequestMethods.Ftp类在WP7上看起来不受支持。
至于GetWebResponse的错误,编译器是绝对正确的,WebRequest (甚至HttpWebRequest)没有GetWebResponse方法,也许您是在寻找WebRequest.GetResponse?
https://stackoverflow.com/questions/17403240
复制相似问题