Server Error in '/' Application.

The parameterized query '(@product nvarchar(7),@producttype nvarchar(7),@category nvarcha' expects the parameter '@category', which was not supplied.

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: The parameterized query '(@product nvarchar(7),@producttype nvarchar(7),@category nvarcha' expects the parameter '@category', which was not supplied.

Source Error:


Line 176:            ' Pretend to retrieve a page title from a PageTitle column in a database table.
Line 177:
Line 178:            Dim pageTitle As String = Cacheclass.GetPackingTitle(strproduct, strproducttype, strcategory)
Line 179:
Line 180:            ' Pretend to retrieve page keywords from a Keywords column in a database table.

Source File: d:\html\users\userweb22\Html\cutlery\cutlerydetail.aspx    Line: 178

Stack Trace:


[SqlException (0x80131904): The parameterized query '(@product nvarchar(7),@producttype nvarchar(7),@category nvarcha' expects the parameter '@category', which was not supplied.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1968874
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4907547
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2412
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +59
   System.Data.SqlClient.SqlDataReader.get_MetaData() +83
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +293
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +954
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
   System.Data.SqlClient.SqlCommand.ExecuteScalar() +139
   RichClass.SqlHelper.ExecuteScalar(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) in D:\RichControl\RichClassVB\RichClass\SqlHelper.vb:485
   RichClass.SqlHelper.ExecuteScalar(CommandType commandType, String commandText, SqlParameter[] commandParameters) in D:\RichControl\RichClassVB\RichClass\SqlHelper.vb:413
   Cacheclass.GetPackingTitle(String strprdct, String strprdcttype, String strcat) +163
   ASP.cutlery_cutlerydetail_aspx.SetPackingWebHead() in d:\html\users\userweb22\Html\cutlery\cutlerydetail.aspx:178
   ASP.cutlery_cutlerydetail_aspx.Page_Load(Object sender, EventArgs e) in d:\html\users\userweb22\Html\cutlery\cutlerydetail.aspx:34
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8975