29601

The call is ambiguous beetween the following methods or properties MVC, devexpress

I have a MVC project and I'm using devexpres 14.1.6. I defined devexpress scripts and stylesheets on _Layout.cshtml page as below

head =>

@Styles.Render("~/Content/css") @Styles.Render("~/Content/Bootstrap/css") @Scripts.Render("~/bundles/modernizr") @Scripts.Render("~/bundles/jquery") @Scripts.Render("~/bundles/bootstrap") @RenderSection("scripts", required: false) @Html.DevExpress().GetScripts( new Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout }, new Script { ExtensionSuite = ExtensionSuite.HtmlEditor }, new Script { ExtensionSuite = ExtensionSuite.GridView }, new Script { ExtensionSuite = ExtensionSuite.PivotGrid }, new Script { ExtensionSuite = ExtensionSuite.Editors }, new Script { ExtensionSuite = ExtensionSuite.Chart }, new Script { ExtensionSuite = ExtensionSuite.Report }, new Script { ExtensionSuite = ExtensionSuite.Scheduler }, new Script { ExtensionSuite = ExtensionSuite.TreeList }

body =>

@Html.DevExpress().GetStyleSheets( new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout }, new StyleSheet { ExtensionSuite = ExtensionSuite.Editors }, new StyleSheet { ExtensionSuite = ExtensionSuite.HtmlEditor }, new StyleSheet { ExtensionSuite = ExtensionSuite.GridView }, new StyleSheet { ExtensionSuite = ExtensionSuite.PivotGrid }, new StyleSheet { ExtensionSuite = ExtensionSuite.Chart }, new StyleSheet { ExtensionSuite = ExtensionSuite.Report }, new StyleSheet { ExtensionSuite = ExtensionSuite.Scheduler }, new StyleSheet { ExtensionSuite = ExtensionSuite.TreeList } )

While my devexpress version is 14.1.3 my project was working perfectly but after I upgrated my devexpress version 14.1.3 to 14.1.6 I started recieve the following error =>

CS0121: The call is ambiguous between the following methods or properties: 'DevExpress.Web.Mvc.UI.HtmlHelperExtension.DevExpress(System.Web.Mvc.HtmlHelper)' and 'DevExpress.Web.Mvc.UI.HtmlHelperExtension.DevExpress(System.Web.Mvc.HtmlHelper)'

I cleaned Temporary ASP.NET Files but I recieved same error.

Answer1:

If you upgrade the DX version the old assemblies will not get removed from the bin directory.

Then the mentioned error will show up. Manually clean the directory ( VS does not know the old files anymore and probably will not delete them ).

<strong>Edit:</strong> This not only applies to DX assemblies but any assembly you might upgrade.

Recommend

  • Not sure where to place Scripts.Render for JQuery
  • DevExpress Xtra Reports Page Break Not Working
  • Paging in Devexpress XtraGrid GrdiControl for Windows Application
  • Is there any way to create special controller for my _Layout?
  • Data visualization / analytics / dashboard in ASP.NET (NOT Google analytics integration)
  • disable arrow key on scheduler control
  • DevExpress: How do get an instance of a control client-side and access its client-side members?
  • Bootstrap Popover showing at wrong place upon zoom in/out or resizing Browser window
  • Making header act like google chrome mobile app address bar
  • Google map in top corner left
  • read values from form post in jquery or javascript
  • Angular Bootstrap Carousel Slide Transition not working correctly
  • jquery validation - waiting for remote check to complete
  • Can you pass an array from javascript to asp.net mvc controller action without using a form?
  • How can I make this modal persistent?
  • apply a javascript function to draggable copy
  • passing a default argument to a browserify module
  • Bootstrap (v3.3.4) glyphicons not displayed in IE when refresh page (F5)
  • Uncaught TypeError: $(…).select2 is not a function
  • Jquery popup on mouse over of calendar control
  • Ajax calls do not work in IE unless you fiddle with security settings
  • Detect when Facebook like button is clicked
  • jQuery .attr() and value
  • How to clear text inside text field when radio button is select
  • Get data from AJAX - How to
  • DomPDF {PAGE_NUM} not on first page
  • Email format validation in mvc3 view
  • Javascript simulate pressing enter in input box
  • Importing jscolor library in angular 2
  • jquery mobile loadPage not working
  • jQuery tmpl and DataLink beta
  • bootstrap to use multiple ng-app
  • How to get icons for entities from eclipse?
  • How to disable jQuery.jplayer autoplay?
  • A cron job substitute?
  • Proper way to use connect-multiparty with express.js?
  • Load html files in TinyMce
  • CSS Applying specific rule for a specific monitor resolution with only CSS is posible?
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • JaxB to read class hierarchy