Server Error in '/' Application.

语法错误 (操作符丢失) 在查询表达式 'p_parent_id= and p_show=1' 中。

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: 语法错误 (操作符丢失) 在查询表达式 'p_parent_id= and p_show=1' 中。

Source Error:

Line 74: catch (System.Data.OleDb.OleDbException E)
Line 75: {
Line 76: throw new Exception(E.Message);
Line 77: }
Line 78: return ds;

Source File: f:\website\yayin.net\App_Code\Db\DbDrivers\DbAccess.cs    Line: 76

Stack Trace:

[Exception: 语法错误 (操作符丢失) 在查询表达式 'p_parent_id= and p_show=1' 中。]
DbAccess.Query(String sql) in f:\website\yayin.net\App_Code\Db\DbDrivers\DbAccess.cs:76
Db.GetAll(String sql) in f:\website\yayin.net\App_Code\Db.cs:20
CategoryTemplate.GetChildCategory(String cat_id) in f:\website\yayin.net\App_Code\Home\CategoryTemplate.cs:47
[MethodInvocationException: Invocation of method 'GetChildCategory' in CategoryTemplate threw exception System.Exception : 语法错误 (操作符丢失) 在查询表达式 'p_parent_id= and p_show=1' 中。]
NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context) +1061
NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context) +464
NVelocity.Runtime.Parser.Node.ASTReference.Value(IInternalContextAdapter context) +23
NVelocity.Runtime.Parser.Node.ASTSetDirective.Render(IInternalContextAdapter context, TextWriter writer) +23
NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer) +66
NVelocity.Runtime.Directive.Parse.RenderTemplate(Template template, String arg, TextWriter writer, IInternalContextAdapter context) +101
NVelocity.Runtime.Directive.Parse.Render(IInternalContextAdapter context, TextWriter writer, INode node) +194
NVelocity.Runtime.Parser.Node.ASTDirective.Render(IInternalContextAdapter context, TextWriter writer) +59
NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer) +66
NVelocity.Template.Merge(IContext context, TextWriter writer) +145
Templates.Display(String templateName) in f:\website\yayin.net\App_Code\Templates.cs:59
Index.ArticleListPage() in f:\website\yayin.net\index.aspx.cs:184
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +335
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +28
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
Index.Page_Load(Object sender, EventArgs e) in f:\website\yayin.net\index.aspx.cs:80
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +46
System.Web.UI.Control.OnLoad(EventArgs e) +83
System.Web.UI.Control.LoadRecursive() +120
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3959


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
足球在线开户必威体育app苹果diuwww.com