Server Error in '/' Application.

Error converting data type nvarchar to int.

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: Error converting data type nvarchar to int.

Source Error:


Line 98:                     throw new Exception(se.Message);
Line 99:                 }
Line 100:                throw new Exception(ee.Message);
Line 101:            }
Line 102:            finally

Source File: d:\vhosts\tuannguyen.com.vn\httpdocs\App_Code\TinLong\DAL\SQLServerDataAccessHelper.cs    Line: 100

Stack Trace:


[Exception: Error converting data type nvarchar to int.]
   tinlong.dal.SqlHeper.ExecuteQuery(String sql, Boolean isTransaction, CommandType commandType, Object[] pars) in d:\vhosts\tuannguyen.com.vn\httpdocs\App_Code\TinLong\DAL\SQLServerDataAccessHelper.cs:100
   UserControl_B_News_Advisory_Details.LoadForm_News_TinKhac() in d:\vhosts\tuannguyen.com.vn\httpdocs\UserControl\B_News_Advisory_Details.ascx.cs:77
   UserControl_B_News_Advisory_Details.Page_Load(Object sender, EventArgs e) in d:\vhosts\tuannguyen.com.vn\httpdocs\UserControl\B_News_Advisory_Details.ascx.cs:57
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +163
   System.Web.UI.Control.LoadRecursive() +163
   System.Web.UI.Control.LoadRecursive() +163
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2606


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062