问题描述
- 求大神帮忙??????
-
“/”应用程序中的服务器错误。字段定义语法错误。
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.OleDb.OleDbException: 字段定义语法错误。
源错误:
行 47: GetFarmPlotList();
行 48: DataTable dt = ChangeToDataTable();
行 49: IOIEExcel.ExportTableExcelFile(dt, "残疾人信息");
行 50: }
行 51: public DataTable ChangeToDataTable()源文件: e:新建文件夹BDHChina.EAI.TrafficPlanBDHChina.EAIBDHChinaEAITrafficBasicTC_BridgeExport.aspx.cs 行: 49
堆栈跟踪:
[OleDbException (0x80040e14): 字段定义语法错误。]
System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1091572
System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +247
System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +189
System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +162
System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +107
Util.ExcelHelper.IOIEExcel.ExportTable2ExcelFile(DataTable dt, String ExcelFileName, String strWorkSheetName, ProgressBar& progressBar1) +525
Util.ExcelHelper.IOIEExcel.ExportTableExcelFile(DataTable dt, String fileName) +432
Traffic_Basic_Tc_BridgeExport.BeginExport() in e:新建文件夹BDHChina.EAI.TrafficPlanBDHChina.EAIBDHChinaEAITrafficBasicTC_BridgeExport.aspx.cs:49
Traffic_Basic_Tc_BridgeExport.Page_Load(Object sender, EventArgs e) in e:新建文件夹BDHChina.EAI.TrafficPlanBDHChina.EAIBDHChinaEAITrafficBasicTC_BridgeExport.aspx.cs:43
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.18067
这个问题怎么解决