user156888
user156888

Reputation:

visual studio - strange error on extension method

Error   1335    The call is ambiguous between the following methods or properties: 
'Wedding.Helpers.ModelStateExtensions.GetFirstErrorMessage(System.Web.Mvc.ModelStateDictionary)' and 
'Wedding.Helpers.ModelStateExtensions.GetFirstErrorMessage(System.Web.Mvc.ModelStateDictionary)'    
C:\Documents and Settings\Administrator\scratch\Archant\WebSites\Weding\Areas\AddressBook\Controllers\Partner\HomeController.cs 
31  69  Wedding

it's pointing to the exact same method on the conflict!!

Why oh why?!

Upvotes: 2

Views: 164

Answers (1)

Ed B
Ed B

Reputation: 6054

Where are you creating the Helper class?

If it's in the App_Code folder..that's probably the issue. Here's a previous answer with more details:

The call is ambiguous between the following methods or properties (bug??)

Upvotes: 1

Related Questions