- Home
- Forum
- Dashboard Platform
- 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>)'
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
SIGN IN To post a reply.
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 |
|
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.
Yes Im using Dashboard Server Embedding in MVC application with embed dashboard service as dll from this link (https://help.syncfusion.com/dashboard-platform/dashboard-sdk/getting-started/aspnet-mvc?_ga=2.177161125.1462593717.1569486396-747614465.1565773724#how-to-embed-dashboard-service-as-dll)
Please find below the two files you requested for
Dashboard SDK Error log
Dashboard Server Error log
Many thanks
Simon
Attachment: Dasboard_Error_logs_cb601ed6.rar
DG
Dhivyabharathi Govindaraj
Syncfusion Team
September 27, 2019 06:42 AM UTC
Hi Simon,
Thanks for providing the requested details.
- Regarding the Error “System.IO.FileNotFoundException: File does not exists”, If you using the Dashboard Server Embedding means it doesn’t requires to embed the dashboard service as DLL for dashboard rendering. We have to use the Dashboard Server’s service itself, from which only the server dashboards get loaded for the dashboard rendering. Please refer the following KB article for more details https://www.syncfusion.com/kb/9042/embed-dashboard-from-dashboard-server-using-server-api. If you still need assistance on this, please raise a separate ticket on your exact requirement and the use case for embedding the dashboard service as DLL.
- Regarding the “401 Unauthorized” which is the known issue on our product under the version 3.2.0.68. We have fixed the issue in our latest release version 4.1.0.84.
Please upgrade the Dashboard Platform SDK and Dashboard Server with the following link https://www.syncfusion.com/forums/145867/syncfusion-dashboard-platform-v4-1-0-84-is-available-for-download. Here, click on your account and choose My Dashboard option on it
Then download the product using the below options
Thanks,
Dhivya
SB
Simon Bunya
September 27, 2019 07:19 AM UTC
Hello Dhivya
Thanks for your response
I have updated the SDK of the dashboard version as advised but still cant load the dashboard in hosted environment (IIS SERVER) but runs well in development environment.
Please note that I'm using embed dashboard service as dll in an MVC application.
i followed this link https://help.syncfusion.com/dashboard-platform/dashboard-sdk/getting-started/aspnet-mvc?_ga=2.173879203.1462593717.1569486396-747614465.1565773724#how-to-embed-dashboard-service-as-dll to embed the dashboard service as dll in an MVC application.
Please advise
Thanks
Simon
DG
Dhivyabharathi Govindaraj
Syncfusion Team
September 27, 2019 09:57 AM UTC
Hi Simon,
We have created a new incident under your Direct trac account to follow up with this query. We suggest you to follow up with the incident for further updates. Please log in using the below link https://www.syncfusion.com/account/login.
Thanks,
Dhivya
SIGN IN To post a reply.
- 8 Replies
- 3 Participants
-
SB Simon Bunya
- Sep 23, 2019 11:31 AM UTC
- Sep 27, 2019 09:57 AM UTC