'System.Net.WebClient.AllowReadStreamBuffering' 已过时' [英] 'System.Net.WebClient.AllowReadStreamBuffering' is obsolete'

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

问题描述

这是完整的错误

错误 1 ​​'System.Net.WebClient.AllowReadStreamBuffering' 已过时:'此 API 支持 .NET Framework 基础结构,但不支持旨在直接从您的代码.'C:\Users\Dan\Documents\Visual Studio2013\Projects\C#\AutoClicker\AutoClicker\Form1.Designer.cs 128 13 AutoClicker

Error 1 'System.Net.WebClient.AllowReadStreamBuffering' is obsolete: 'This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.' C:\Users\Dan\Documents\Visual Studio 2013\Projects\C#\AutoClicker\AutoClicker\Form1.Designer.cs 128 13 AutoClicker

每次我对设计器表单进行任何更改时,都会出现此错误.有关如何解决此问题的任何想法?

推荐答案

我会尝试的三件事:

1) 删除 webclient 并将其重新添加以查看是否可以修复它.2)在代码中而不是通过设计器定义webclient.3) 检查您的参考资料以了解您使用的 System.net 版本.即如果它是任何较旧的 .net 版本

1) Delete the webclient and add it back in to see if that fixes it. 2) Define the webclient in code instead of through the designer. 3) Check your References to see what version of System.net you are using. i.e. if it is any older .net version

这篇关于'System.Net.WebClient.AllowReadStreamBuffering' 已过时'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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