Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 我如何设置;JsonReaderQuotas“;DotNetOpenAuth上的属性;OAuth2ClientChannel“;班_C#_Asp.net Mvc 4_Dotnetopenauth_Instagram - Fatal编程技术网

C# 我如何设置;JsonReaderQuotas“;DotNetOpenAuth上的属性;OAuth2ClientChannel“;班

C# 我如何设置;JsonReaderQuotas“;DotNetOpenAuth上的属性;OAuth2ClientChannel“;班,c#,asp.net-mvc-4,dotnetopenauth,instagram,C#,Asp.net Mvc 4,Dotnetopenauth,Instagram,我正在使用DotNetOpenAuth与Instagram进行身份验证。不幸的是,我返回了以下错误 已超过最大读取深度(2),因为正在读取的XML数据的嵌套级别超过配额允许的级别。可以通过更改创建XML读取器时使用的XmlDictionaryReaderQuotas对象的MaxDepth属性来增加此配额 环顾四周,我发现DotNetOpenAuth的4.2版中添加了一个修复程序,允许您覆盖默认的最大级别,即OAuth2Client通道上名为JsonReaderQuotas的属性。但是,我似乎看不

我正在使用DotNetOpenAuth与Instagram进行身份验证。不幸的是,我返回了以下错误

已超过最大读取深度(2),因为正在读取的XML数据的嵌套级别超过配额允许的级别。可以通过更改创建XML读取器时使用的XmlDictionaryReaderQuotas对象的MaxDepth属性来增加此配额

环顾四周,我发现DotNetOpenAuth的4.2版中添加了一个修复程序,允许您覆盖默认的最大级别,即
OAuth2Client通道上名为
JsonReaderQuotas
的属性。但是,我似乎看不到如何设置或重写此属性来解决问题

有人知道如何覆盖默认值,或者知道更好的方法吗

ClientBase someClient; // initialized elsewhere
someClient.JsonReaderQuotas.MaxDepth = 10;