Bug 20585 - MT4117 Error when adding an event handler via the Properties-Events menu
Summary: MT4117 Error when adding an event handler via the Properties-Events menu
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 3.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-06-13 13:52 UTC by John Miller [MSFT]
Modified: 2015-02-09 07:44 UTC (History)
6 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description John Miller [MSFT] 2014-06-13 13:52:24 UTC
## Overview: 

    Using the VS iOS Designer and adding an event handler for a button from the Properties -> Events menu a MT4117 error occurs at compile time. Double clicking the same button to add an event handler for Up Inside does not reproduce this issue.

## Steps to Reproduce: 

    1. Create an iOS project with a storyboard file.
    2. Add a button to a view. 
    3. Go to the Properties menu for that button.
    4. Go to the Events tab, and for the Up Inside event, type in an event handler name e.g. Test_Click
    5. Save and build.

## Actual Results: 

    Error 1 MT4117:The registrar found a signature mismatch in the method 'TestApp.MainViewController.Test_Click' - the selector
'Test_Click' indicates the method takes 0 parameters, while the managed method has 1 parameters.

## Expected Results: 

    No error.

## Build Date & Platform: 

    XVS 3.0
    VS 2013

## Additional Information: 

    If you double-click the control to add an event handler for TouchUpInside, it will work fine. The difference in the storyboard shows this:

When manually adding the event handler through the properties menu:
<action selector="Test_Click" ...>

When adding via double-clicking the control:
<action select="Test_Click:" ...>

The ":" is missing in the first. 

This does not happen in Xamarin Studio.
Comment 1 Tajinder Singh 2014-06-16 04:08:45 UTC
I have tried this issue but I am unable to reproduce this issue.

Steps to reproduce this issue:

1. Create a iOS "Single View Application" on VS 2013.
2. Add a button on MainStoryboard.storyboard file.
3. Add an event to button (select button => on property menu => select Event tab => add handler for Up Inside event).
4. Save and build the project.
5. Project is building successfully. 

Screencast: http://www.screencast.com/t/bEYk5w84dCUA

Please let me know if I am missing anything?

Environment Info:

Windows 7
Microsoft Visual Studio Professional 2013
Version 12.0.21005.1 REL
Microsoft .NET Framework
Version 4.5.50938

Xamarin   3.0.54.0 (d3cf238e3845e930e312b6ec9b4c6c5437c33067)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android

Xamarin.iOS   3.0.54.0 (d3cf238e3845e930e312b6ec9b4c6c5437c33067)
Visual Studio extension to enable development for Xamarin.iOS
Comment 2 Alan McGovern 2014-09-15 07:44:09 UTC
This should've been fixed weeks/months ago.
Comment 3 asimk 2015-02-09 07:44:13 UTC
As per comment 1 and comment 2 closing this issue.