I have a rather large VB
ASP.NET
WebForms
page, and when I edit it, Visual Studio
automatically formats it for me. Now when I run it I get the error:
BC30205: End of statement expected
at some arbitrary line of code such as
myCommand.CommandText = sqlStr
This error only occurs at runtime; Visual Studio
does not report it at compile time. I don't see anything wrong with the line of code in question or anything around it (slightly redacted; the first line is a continuation of a previous statement):
XXXXDBTools.DBFunctions.CheckDateSql(Request.Form("XXXXBillingEndDate")) & ") "
myCommand.CommandText = sqlStr
rows = myCommand.ExecuteNonQuery()
Why would an erroneous compiler error occur only at runtime, and how can I fix it so I can make changes to the page without it crashing on me?