Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/283.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/16.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# 实现xmlreadersettings_C#_Asp.net Mvc_Single Sign On - Fatal编程技术网

C# 实现xmlreadersettings

C# 实现xmlreadersettings,c#,asp.net-mvc,single-sign-on,C#,Asp.net Mvc,Single Sign On,我正在使用我的组织的联合会服务来按照的指导方针实施SSO 但是我得到了以下错误: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method. 我找到了绕过此错

我正在使用我的组织的联合会服务来按照的指导方针实施SSO

但是我得到了以下错误:

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method. 

我找到了绕过此错误的代码。但它并没有说我必须在哪里写这段代码。如果这看起来太琐碎,请耐心听我说。

您必须向我们展示您试图读取xml的代码,以便我们知道您需要将解决方案实现放在哪里。@Kevin我没有明确编写任何xml代码。也许奥文在什么地方有?