使用System.Net.HttpRequest :: EndGetRequestStream [英] Using System.Net.HttpRequest::EndGetRequestStream

查看:165
本文介绍了使用System.Net.HttpRequest :: EndGetRequestStream的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MonoDevelop 3.1.1和Mono运行时3.0.12 我正在尝试使用其中一个Google.Apis示例(

I'm using MonoDevelop 3.1.1 and Mono runtime 3.0.12 I'm trying to work with one of Google.Apis samples (Tasks.ETagCollision for example) on that platform, without any success. I fixed all NuGet references so the sample runs, but when I'm trying to create a request to the server using the sample code, I'm getting the following error:

缺少方法 System.Net.HttpWebRequest :: EndGetRequestStream(IAsyncResult,TransportContext&) 组装中 /Library/Frameworks/Mono.framework/Versions/3.0.12/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll, 汇编中引用 /Users/peleyal/code.google.com/google-api-dotnet-client/samples/Tasks.CreateTasks/bin/Debug/System.Net.Http.dll

Missing method System.Net.HttpWebRequest::EndGetRequestStream(IAsyncResult,TransportContext&) in assembly /Library/Frameworks/Mono.framework/Versions/3.0.12/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll, referenced in assembly /Users/peleyal/code.google.com/google-api-dotnet-client/samples/Tasks.CreateTasks/bin/Debug/System.Net.Http.dll

发生了一个错误: 找不到方法:"System.Net.HttpWebRequest.EndGetRequestStream".

An error has occured: Method not found: 'System.Net.HttpWebRequest.EndGetRequestStream'.

按任意键以显示堆栈跟踪
System.MissingMethodException:找不到方法: 'System.Net.HttpWebRequest.EndGetRequestStream'.在 System.Net.WebAsyncResult.CB(未使用System.Object)在[0x00000]中 :0

Press any key to display the stacktrace
System.MissingMethodException: Method not found: 'System.Net.HttpWebRequest.EndGetRequestStream'. at System.Net.WebAsyncResult.CB (System.Object unused) [0x00000] in :0

我检查了一下,System.dll不包含该重载方法(它仅包含获取IAsyncResult的EndGetRequestStream,但不包含其他TransportContext参数). 能够在Mono上运行该示例将是很棒的. 谢谢

I checked and System.dll doesn't contain that overload method (it contains only EndGetRequestStream which gets IAsyncResult, but not an additional TransportContext parameter). It would be great to be able to run that sample on Mono. Thanks

推荐答案

它显然不存在,所以我建议您在如何提交良好的错误报告的信息

its clearly missing so i would suggest you to file an issue in mono in their bugtracker. You can read information about how to file a good bug report

这篇关于使用System.Net.HttpRequest :: EndGetRequestStream的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆