找不到会员'XmlSchema'

时间:2014-01-28 03:31:22

标签: c# asp.net

有谁可以解释下面的错误是什么?我是asp.net编码的新手。

创建devExpress报告类文件时会发生此问题。 是因为文件包含

this.dataSet1.DataSetName = "DataSet";
this.dataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;

描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息:System.Runtime.Serialization.SerializationException:找不到成员'XmlSchema'。

*错误在第51行。

**Line 51:         string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));**
Line 52:         if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
Line 53:             global::System.Data.DataSet ds = new global::System.Data.DataSet();



Stack Trace: 


[SerializationException: Member 'XmlSchema' was not found.]
   System.Runtime.Serialization.SerializationInfo.GetElement(String name, Type& foundType) +10582902
   System.Runtime.Serialization.SerializationInfo.GetValue(String name, Type type) +64
   DataSet..ctor(SerializationInfo info, StreamingContext context) in c:\Users\abc\AppData\Local\Temp\Temporary ASP.NET Files\merchantbackoffice\4a269a66\d1e49b63\App_Code.6rrshakh.2.cs:51
   Void .ctor(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)(Object , Object[] ) +224
   Newtonsoft.Json.Serialization.<>c__DisplayClassa.<CreateISerializableContract>b__9(Object[] args) +13
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateISerializable(JsonReader reader, JsonISerializableContract contract, String id) +271
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) +606
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) +91
   Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType) +468
   Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) +402
   Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) +108
   Newtonsoft.Json.JsonConvert.DeserializeObject(String value, JsonSerializerSettings settings) +66
   Newtonsoft.Json.JsonConvert.DeserializeObject(String value) +42
   Account_Login1.btnLogin_Click(Object sender, EventArgs e) in c:\Users\abc\Desktop\testing - new\Payment\MBackOffice\Account\Login1.aspx.cs:35
   DevExpress.Web.ASPxEditors.ASPxButton.OnClick(EventArgs e) +104
   DevExpress.Web.ASPxEditors.ASPxButton.RaisePostBackEvent(String eventArgument) +619
   DevExpress.Web.ASPxClasses.ASPxWebControl.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

0 个答案:

没有答案