Server Error in '/' Application.

Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> Char(3)'.
Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> = (SELECT ResistLevel FROM #ResistLevel WHERE #ResistLevel.SubstitutionID = #array.SubstitutionID)'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> Char(3)'.
Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> = (SELECT ResistLevel FROM #ResistLevel WHERE #ResistLevel.SubstitutionID = #array.SubstitutionID)'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.

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: Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> Char(3)'.
Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> = (SELECT ResistLevel FROM #ResistLevel WHERE #ResistLevel.SubstitutionID = #array.SubstitutionID)'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> Char(3)'.
Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> = (SELECT ResistLevel FROM #ResistLevel WHERE #ResistLevel.SubstitutionID = #array.SubstitutionID)'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.

Source Error:


Line 48:         DA.SelectCommand.Parameters("@HRAC").Value = "B"
Line 49: 
Line 50:         DA.Fill(DS, "Sum")
Line 51:         'Go through Dataset and set the aminoacid to blank if it is the same as above
Line 52:         Dim row As DataRow

Source File: D:\inetpub\weedscience\mutations\MutDisplay.aspx.vb    Line: 50

Stack Trace:


[SqlException (0x80131904): Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> Char(3)'.
Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> = (SELECT ResistLevel FROM #ResistLevel WHERE #ResistLevel.SubstitutionID = #array.SubstitutionID)'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> Char(3)'.
Line 1: Incorrect syntax near '<'.
Unclosed quotation mark before the character string '></script> = (SELECT ResistLevel FROM #ResistLevel WHERE #ResistLevel.SubstitutionID = #array.SubstitutionID)'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.
Line 1: Incorrect syntax near '<'.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +925466
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +800118
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +186
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1932
   System.Data.SqlClient.SqlDataReader.SetMetaData(_SqlMetaDataSet metaData, Boolean moreInfo) +126
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1623
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
   System.Data.SqlClient.SqlDataReader.get_MetaData() +62
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +1005
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +12
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +7
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +141
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
   mutations_MutDisplay1.BindGrid() in D:\inetpub\weedscience\mutations\MutDisplay.aspx.vb:50
   mutations_MutDisplay1.Page_Load(Object sender, EventArgs e) in D:\inetpub\weedscience\mutations\MutDisplay.aspx.vb:31
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433