Error deleting a milestone

If you are having a problem using Fortress, post a message here.

Moderator: SourceGear

Post Reply
saint168
Posts: 15
Joined: Sat Aug 29, 2009 2:17 pm

Error deleting a milestone

Post by saint168 » Tue May 25, 2010 10:01 am

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.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error deleting a milestone

Post by Beth » Tue May 25, 2010 10:52 am

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

saint168
Posts: 15
Joined: Sat Aug 29, 2009 2:17 pm

Re: Error deleting a milestone

Post by saint168 » Wed May 26, 2010 9:49 am

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)

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error deleting a milestone

Post by Beth » Wed May 26, 2010 12:20 pm

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.
Beth Kieler
SourceGear Technical Support

saint168
Posts: 15
Joined: Sat Aug 29, 2009 2:17 pm

Re: Error deleting a milestone

Post by saint168 » Thu May 27, 2010 2:33 pm

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.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error deleting a milestone

Post by Beth » Thu Jun 03, 2010 1:12 pm

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

Post Reply