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

Source Error:


Line 79:             {
Line 80: 		df.close();
Line 81:                 throw Exception1;
Line 82:             }
Line 83: 		}

Source File: c:\inetpub\wwwroot\Directa2\App_Code\CM.cs    Line: 81

Stack Trace:


[SqlException (0x80131904): Error converting data type nvarchar to int.]
   Publisher.Component.Object.CM.GetItem(Object p_id) in c:\inetpub\wwwroot\Directa2\App_Code\CM.cs:81
   exego.Page_PreInit(Object sender, EventArgs e) in c:\inetpub\wwwroot\Directa2\exego.aspx.cs:93
   System.Web.UI.Page.OnPreInit(EventArgs e) +11692592
   System.Web.UI.Page.PerformPreInit() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +335


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0