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 77:             catch (Exception Exception1)
Line 78:             {
Line 79:                 throw Exception1;
Line 80:             }
Line 81: 		}

Source File: c:\inetpub\wwwroot\Exego5\App_Code\CM.cs    Line: 79

Stack Trace:


[SqlException (0x80131904): Error converting data type nvarchar to int.]
   Publisher.Component.Object.CM.GetItem(Object p_id) in c:\inetpub\wwwroot\Exego5\App_Code\CM.cs:79
   exego.Page_PreInit(Object sender, EventArgs e) in c:\inetpub\wwwroot\Exego5\exego.aspx.cs:70
   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