Server Error in '/' Application.

The parameterized query '(@idCampagna int,@link nvarchar(11),@idAnagrafica int,@emailAnag' expects the parameter '@referrerText', 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 '(@idCampagna int,@link nvarchar(11),@idAnagrafica int,@emailAnag' expects the parameter '@referrerText', which was not supplied.

Source Error:


Line 36:                     cmd.Parameters.Add("ipClient", Data.SqlDbType.NVarChar).Value = Request.ServerVariables("REMOTE_ADDR")
Line 37:                     cmd.Parameters.Add("referrerText", Data.SqlDbType.NVarChar).Value = HttpUtility.UrlDecode(Request.QueryString.Get("referrerText"))
Line 38:                     cmd.ExecuteNonQuery()
Line 39:                 End If
Line 40:                 dr.Close()

Source File: D:\Home\uplinkcrm.it\httpdocs\link.aspx.vb    Line: 38

Stack Trace:


[SqlException (0x80131904): The parameterized query '(@idCampagna int,@link nvarchar(11),@idAnagrafica int,@emailAnag' expects the parameter '@referrerText', which was not supplied.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +1968714
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4907243
   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.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +200
   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.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +175
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +137
   link.Page_Init(Object sender, EventArgs e) in D:\Home\uplinkcrm.it\httpdocs\link.aspx.vb:38
   System.Web.UI.Control.OnInit(EventArgs e) +99
   System.Web.UI.Page.OnInit(EventArgs e) +12
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378


Version Information: Microsoft .NET Framework Version:2.0.50727.9054; ASP.NET Version:2.0.50727.9051