Hi DW,
Im trying to delete area on one of our solutions which runs on a 9.17.5 version, but it keeps failing after 1 minute.
I digged a bit around and i think i've found the underlying issue in the source code.
It starts here in "Delete.aspx.vb" where "MoveToBin" and "DeleteArea" are called.
Also it would be great if you could have a option to skip MoveToBin in the Delete option box.
In both methods, there is a use of "new TransactionsScope()", which has a default timeout of 60 seconds.
Both pictures are taken from the "AreaService.cs" file.
There's an old blog here from Microsoft which recommends not using the default constructor - and gives a helper method to prevent the default timeout both for C# and VB.NET.
1.Digging a bit further into the "DeleteArea" method, it calls the "DeleteAllAreaPages" method - where the default TransactionScope is used again.
2. There's also no overload for timeout on any of the Database.CreateDataReader methods,
which means it just defaults to 30 seconds on default setups where the globalsettings timeout hasn't been changed.
It can see you're using a timeout of 45 minutes in CopyArea, it would be awesome if it could be used here aswell
Searching for the use of the default constructor, there's multiple where the issue also exists
Hoping it helps your error search and fix of the issue :)
Looking forward to your response.
Best regards,
Mikkel Hammer