Home Dashboard Directory Help
Search

TFS 2012 Update 2 problem: TeamFoundationRequestContext Cancel Method not showing the message by saeid64


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Bug
ID: 790965
Opened: 6/25/2013 10:45:45 PM
Access Restriction: Public
0
Workaround(s)
view
1
User(s) can reproduce this bug

Description






We have plugin of type 'ITeamFoundationRequestFilter', we are using this type of plugin for workitem tracking to constraint user actions and showing them some error messages.
But the problem: for example in 'EnterMethod' in plugin of type 'ITeamFoundationRequestFilter' and in TFS 2012 (with out any updates) showing the user "Business error!" message on any workitem update But in TFS 2012 with update 2 some how just showing "Exception of type 'Microsoft.TeamFoundation.Framework.Server.RequestCanceledException' was thrown" message!

        public void EnterMethod(TeamFoundationRequestContext requestContext)
        {
switch (requestContext.Method.Name)
            {
                case "ApiWIT.updateWorkItems":
                    {
                         requestContext.Cancel("Business error!");
                         break;
                     }
         }
        }
Details
Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:30 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
Posted by saeid64 on 7/7/2013 at 10:46 AM
Nothing!
Posted by Microsoft on 6/26/2013 at 10:01 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by Microsoft on 6/25/2013 at 10:50 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.