• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

James England (Resposio)
#1 Posted : Thursday, May 14, 2015 10:24:51 AM(UTC)
James England (Resposio)

Rank: Member

Joined: 5/12/2015(UTC)
Posts: 6

Thanks: 2 times
Alright -> web.config is properly updated. It is directing to the right SQL server IP address with correct username, PW, and DB. That is confirmed.

Here is the issue I'm running into:


The wait operation timed out

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.ComponentModel.Win32Exception: The wait operation timed out

Source Error:

Line 13: Protected Sub StartButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles StartButton.Click
Line 14: If Utilities.VersionHelper.SqlPatchNeeded() Then
Line 15: Utilities.VersionHelper.RunSqlPatch()
Line 16:
Line 17: ' restart application


Source File: E:\Webs\(COMPANY)\(WEBSITE)\WWW\SqlPatch.aspx.vb Line: 15

Stack Trace:



[Win32Exception (0x80004005): The wait operation timed out]

[SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +392
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +815
System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4515
System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) +1390
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) +538
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +290
BVSoftware.Bvc5.Core.Datalayer.SqlDataHelper.ParseSQLLines(String lines, SqlConnection& c) in C:\BVCommerce\2015.0.3.961\source\BVSoftware.Bvc5.Core\Datalayer\SqlDataHelper.vb:543
BVSoftware.Bvc5.Core.Datalayer.SqlDataHelper.ExecuteSQL(SqlConnection conn, String scriptFile, String& ErrorMessage) in C:\BVCommerce\2015.0.3.961\source\BVSoftware.Bvc5.Core\Datalayer\SqlDataHelper.vb:525
BVSoftware.Bvc5.Core.Utilities.SqlPatchHelper.PatchVersion(Versions version) in C:\BVCommerce\2015.0.3.961\source\BVSoftware.Bvc5.Core\Utilities\SqlPatchHelper.vb:42
BVSoftware.Bvc5.Core.Utilities.VersionHelper.RunSqlPatch() in C:\BVCommerce\2015.0.3.961\source\BVSoftware.Bvc5.Core\Utilities\VersionHelper.vb:45
SqlPatch.StartButton_Click(Object sender, EventArgs e) in E:\Webs\MarchIndustries\OogalightsBV2015\WWW\SqlPatch.aspx.vb:15
System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +134
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +204
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249


Aaron
#2 Posted : Thursday, May 14, 2015 11:07:14 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
It sounds like you're hitting a SQL timeout. Meaning, the query is taking longer than the timeout limit (usually 30 seconds). I assume this is happening when you run the upgrade from the SqlPatch.aspx page. One thing you could try is to enable debug mode via the Web.config file which should increase the timeout.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Aaron
#3 Posted : Thursday, May 14, 2015 11:09:46 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Actually, if you're hitting a SQL timeout then debug mode probably won't help; that will only help if you're hitting an ASP.NET page timeout. In the case of a SQL timeout you will need to manually run the database upgrade scripts. This is fairly common when upgrading from very old versions of 5.X and also with very large databases.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
 1 user thanked Aaron for this useful post.
James England (Resposio)
#4 Posted : Thursday, May 14, 2015 11:34:13 AM(UTC)
James England (Resposio)

Rank: Member

Joined: 5/12/2015(UTC)
Posts: 6

Thanks: 2 times
Is that script available anywhere either through this forum or through bvcommerce?

Aaron
#5 Posted : Thursday, May 14, 2015 11:53:22 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
The upgrade scripts are found in the /BVAdmin/BVSql folder. You'll need to run the scripts in each folder sequentially starting from the next version after the version that you're currently running. In your case, that means starting with the SP3 folder. In each folder you should run the scripts in this order:

  1. SchemaScript.sql
  2. DataScript.sql
  3. NonTransactionalScript (this script is only present in the newest versions)
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012