When I try to delete a milestone on Fortress, I got the following error from IE:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; MS-RTC EA 2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Creative ZENcast v2.01.01)
Timestamp: Tue, 25 May 2010 15:58:31 UTC
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '
<!DOCTYPE html'.
Line: 5
Char: 62099
Code: 0
URI: http://fortress/VaultService/ScriptReso ... ffec2d9970
When I tried it in Chrome, there was no response clicking the Delete button.
Error deleting a milestone
Moderator: SourceGear
Re: Error deleting a milestone
Could you look in your Fortress server log at %windir%\temp\sgfortress\fortress.log and see if any errors show up there?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Error deleting a milestone
Here it is:
2010-05-25 08:57:08.447 VM-DevServer01.cms.local (192.168.42.12)-Stephen : Helpers::DeleteMilestone The DELETE statement conflicted with the REFERENCE constraint "fk_items_milestones". The conflict occurred in database "sgdragnet", table "dbo.items". The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at MantisSQLService.MantisSQLService.DeleteMilestone(MantisSqlConn conn, Int32 nAuthUID, Int32 nProjectID, Int32 nMilestoneID) at MantisServiceAPI.MantisServiceAPI.DeleteMilestone(Int32 nAuthUID, Int32 nProjectID, Int32 nMilestoneID) at MantisServiceLib.Helpers.DeleteMilestone(Int32 nProjectID, Int32 nMilestoneID)
2010-05-25 08:57:08.447 VM-DevServer01.cms.local (192.168.42.12)-Stephen : Helpers::DeleteMilestone The DELETE statement conflicted with the REFERENCE constraint "fk_items_milestones". The conflict occurred in database "sgdragnet", table "dbo.items". The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at MantisSQLService.MantisSQLService.DeleteMilestone(MantisSqlConn conn, Int32 nAuthUID, Int32 nProjectID, Int32 nMilestoneID) at MantisServiceAPI.MantisServiceAPI.DeleteMilestone(Int32 nAuthUID, Int32 nProjectID, Int32 nMilestoneID) at MantisServiceLib.Helpers.DeleteMilestone(Int32 nProjectID, Int32 nMilestoneID)
Re: Error deleting a milestone
Is that milestone used in any recorded tasks or bugs? If so, then it cannot be deleted. The error you see suggests that it's being used by some items.
I ran a quick test to confirm this behavior. Probably a better error from us to let you know that the milestone is in use would be the way to go.
I ran a quick test to confirm this behavior. Probably a better error from us to let you know that the milestone is in use would be the way to go.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Error deleting a milestone
Beth wrote:Is that milestone used in any recorded tasks or bugs? If so, then it cannot be deleted. The error you see suggests that it's being used by some items.
I ran a quick test to confirm this behavior. Probably a better error from us to let you know that the milestone is in use would be the way to go.
I ran a search with that milestone and didn't find any item associated with it.
Re: Error deleting a milestone
I think we may need to take a closer look to identify what is going on. Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support