We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

The call is ambiguous between the following methods or properties: 'Syncfusion.Dashboard.MVC.EJ.DJavaScriptExtension.EJ<dynamic>(System.Web.Mvc.HtmlHelper<dynamic>)' and 'Syncfusion.MVC.EJ.JavaScriptExtension.EJ<dynamic>(System.Web.Mvc.HtmlHelper<dynamic>)'

hello there,
Im using embed dashboard service as dll and i followed this linkhttps://help.syncfusion.com/dashboard-platform/dashboard-sdk/getting-started/aspnet-mvc#how-to-embed-dashboard-service-as-dllto put it into my application which works well now, but other MVC controls like a Grid and Scheduler are not loading.

It shows the error below


Compiler Error Message: CS0121: The call is ambiguous between the following methods or properties: 'Syncfusion.Dashboard.MVC.EJ.DJavaScriptExtension.EJ(System.Web.Mvc.HtmlHelper)' and 'Syncfusion.MVC.EJ.JavaScriptExtension.EJ(System.Web.Mvc.HtmlHelper)'

Please advise
thanks
Simon



8 Replies

SB Simon Bunya September 23, 2019 01:48 PM UTC

Compiler Error Message: CS0121: The call is ambiguous between the following methods or properties: 'Syncfusion.Dashboard.MVC.EJ.DJavaScriptExtension.EJ<dynamic>(System.Web.Mvc.HtmlHelper<dynamic>)' and 'Syncfusion.MVC.EJ.JavaScriptExtension.EJ<dynamic>(System.Web.Mvc.HtmlHelper<dynamic>)'


FS Farveen Sulthana Thameeztheen Basha Syncfusion Team September 24, 2019 03:28 PM UTC

Hi Simon,  
  
Thanks for contacting Syncfusion support.  
  
The problem you are currently facing is the known issue and that will occur only when the dashboard sample is created with the reference of very first release of the Syncfusion Dashboard Platform SDK.  
Initially we have provided the support to embed the ejDashboardViewer into the ASP.NET MVC platform under EJ().  
Later we are having the requirement that integrating the ejDashboardViewer along with the Syncfusion ejControls, here both the wrapper library should contains the EJ() component. At that case we are facing the conflict with the ambiguous reference that you are currently facing.  
  
So we have decided to the provide the separate wrapper library for ejDashboardViewer at the case while integrating with the ejControls named Syncfusion.EJ.DashboardViewer.Mvc which should call the ejDashboardViewer via EJDashboard() instead of Syncfusion.EJ.DashboardViewer’s EJ()  
In the meantime we are providing the support for the backward compatibility via the library  Syncfusion.EJ.DashboardViewer (On the usage of ejDashboardViewer alone).  
  
Please find the following changes regarding the issue you are currently facing.  
  
Dashboard Platform Version  
up to 2.3.032  
3.1.0.113 and later  
Wrapper DLL reference  
Syncfusion.EJ.DashboardViewer  
Syncfusion.EJ.DashboardViewer.Mvc  
Syntax  
@Html.EJ().DashboardViewer  
@Html.EJDashboard().DashboardViewer  
  
You can call the ejdashboardViewer along with the ejControls like below example by using the Syncfusion.EJ.DashboardViewer.Mvc for ejDashboardViewer  
  
  
  
Please find the Syncfusion.EJ.DashboardViewer.Mvc  wrapper dll from the following Synfusion Dashboard Platform SDK installed location  
%LocalAppData%\Syncfusion\Dashboard Platform SDK\Getting Started Samples\Common\Precompiled Assemblies\Syncfusion.EJ.DashboardViewer.Mvc\  
  
Or you can get it from the following nuget  https://www.nuget.org/packages/Syncfusion.EJ.DashboardViewer.Mvc/  
 
Also you can refer the Getting started sample from the installed location itself.  
%LocalAppData%\Syncfusion\Dashboard Platform SDK\Getting Started Samples\ASP.NET MVC\LocalEmbeddedDashboard  
  
 Regards,  
Farveen sulthana T 
 



SB Simon Bunya September 26, 2019 08:38 AM UTC

Hello,
 
Farveen sulthana T,

Thanks for your response.

We managed to work around the embed dashboard using Service DLL by using a lower version 15 other than current version 17.

Now when i run the application in the hosted IIS server it doesn't run the dashboard, but if i run the application from the development environment IDE, the dashboard loads well.



Application in IDE visual studio 2017 where it loads the dashboard well using embed dashboard with DLL as a service







Application in Hosted Environment (IIS Server) where it refuses to load the dashboard using embed dashboard with DLL as a service




Thanks again 

please advise 

Simon



DG Dhivyabharathi Govindaraj Syncfusion Team September 26, 2019 12:37 PM UTC

Hi Simon, 
 
Thanks for your update. 
 
Can you please confirm us whether you are using the Dashboard Server Embedding in your MVC application. Also share us the error log(s) file in the below mentioned location to investigate further on this issue. 
 
Dashboard Server  
Dashboard SDK  
C:\Syncfusion\Dashboard Server\DashboardServer.Web\API\ErrorLog 
  • %localappdata%\Syncfusion\Dashboard Platform SDK\Service\ErrorLog
 
  • Your_SDK_ApplicationRootFolder\ErrorLog
 
 
If possible, please share us the code snippets which you are using to render the dashboard in your application. 
 
Thanks, 
Dhivya 



SB Simon Bunya September 26, 2019 12:52 PM UTC


Hello Dhivya

Thanks for your reply.


Please find below the two files you requested for 

Dashboard SDK  Error log