Web Application Error
An unexpected error have occurred in the web application.
If this is the first time the error occurrs, please try to return to the previous page, and try again.
If the error persists, please go to the start page.
Microsoft.SqlServer.Management.Smo.FailedOperationException: Execute with results failed for Database 'HCPOnline_Stage'. ---> Microsoft.SqlServer.Management.Common.ExecutionFailureException: An exception occurred while executing a Transact-SQL statement or batch. ---> Microsoft.Data.SqlClient.SqlException: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
at Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException)
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(String sqlCommand, Boolean retry)
--- End of inner exception stack trace ---
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(String sqlCommand, Boolean retry)
at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(StringCollection sqlCommands)
at Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteWithResults(StringCollection query)
at Microsoft.SqlServer.Management.Smo.Database.ExecuteWithResults(StringCollection sqlCommands)
--- End of inner exception stack trace ---
at Microsoft.SqlServer.Management.Smo.Database.ExecuteWithResults(StringCollection sqlCommands)
at HCPDataAccess.MembersRepository.GetMembersPenalties(DateTime from, DateTime to) in D:\Bangolf\DevOps_HCPOnlineBackend\Source\HCPDataAccess\MembersRepository.cs:line 123
at HCPOnline.MembersPenalties.PagePreRenderEvent(Object sender, EventArgs e) in K:\Bangolf\DevOps_HCPOnlineBackend\Source\HCPOnline\MembersPenalties.aspx.cs:line 38
at HCPOnline.BasePage.Page_PreRender(Object sender, EventArgs e) in K:\Bangolf\DevOps_HCPOnlineBackend\Source\HCPOnline\BasePage.cs:line 704
at System.Web.UI.Control.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)