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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Syncfusion.MVC.EJ.EssientialJavaScriptFor does not contain a definition for DataManager

Thread ID:

Created:

Updated:

Platform:

Replies:

120026 Aug 25,2015 12:16 AM UTC Aug 27,2015 06:50 AM UTC ASP.NET MVC 5
loading
Tags: DataManager
David Elies
Asked On August 25, 2015 12:16 AM UTC

When I try to create a datamanager by name, I get this compiler error message in the page. 

Compiler Error Message: CS1061: 'Syncfusion.MVC.EJ.EssentialJavaScriptFor<dynamic>' does not contain a definition for 'DataManager' and no extension method 'DataManager' accepting a first argument of type 'Syncfusion.MVC.EJ.EssentialJavaScriptFor<dynamic>' could be found (are you missing a using directive or an assembly reference?)

I'm trying to follow the example which looks like this:

 @(Html.EJ().DataManager("flatData").URL("https://someurl.com").CrossDomain(true))


Madhu Sudhanan P [Syncfusion]
Replied On August 25, 2015 10:50 AM UTC

Hi David,

Thanks for using Syncfusion products.

We have analyzed the reported issue and we are unable to reproduce the reported issue at our end. The ASP.Net MVC DataManager control is included in our Essential Studio v13.2.0.29. Please refer the below link.

http://www.syncfusion.com/products/whatsnew/aspnetmvc#common

And hence to make use of the DataManager control, we suggest you to upgrade to our latest version v13.2.0.34.

Please follow the below steps to upgrade to 13.2.0.34.

1. Download and install the Essential Studio v13.2.0.34 from the below link.
     
            http://www.syncfusion.com/forums/119866/essential-studio-2015-volume-2-service-pack-release-v13-2-0-34-available-for-download
  
2. Replace the Syncfusion DLLs, scripts, and CSS in your project from the following location.

            Scripts and CSS: C:\Program Files (x86)\Syncfusion\Essential Studio\XX.X.X.XX\JavaScript\assets
           DLLs: C:\Program Files (x86)\Syncfusion\Essential Studio\XX.X.X.XX\Assemblies

Here XX.X.X.XX denotes the product version(13.2.0.34).

If you already upgraded to the version 13.2.0.29 or 13.2.0.34, then we suspect that the reference of the old assemblies are still present in your application and hence please ensure whether the DLLs corresponding to the version is referred in web.config and also try by cleaning the bin folder to avoid accidental reference of the old assemblies.

If you are still facing issue in using DataManager controls then please provide us more information such as the web.config file and the information provided would be more helpful for us to analyze the issue and provide you the response as early as possible.

Regards,
Madhu Sudhanan. P

David Elies
Replied On August 25, 2015 04:53 PM UTC

Thanks for your reply,

We're using NuGet to install our packages, not the essential studio installer.  The library folder which holds our nuget packages, shows versions 13.1.0.30 and 13.2.0.34. The intellisense hints do not show DataManager as part of MVC.EJ.EssentialJavaScriptFor.  

Alan Sangeeth S [Syncfusion]
Replied On August 26, 2015 05:22 AM UTC

Hi David,

Thanks for the update.

As your library folder holds both 13.1.0.30 and 13.2.0.34 versions, there may occur some conflicts in your project. Also since ASP.Net MVC DataManager control is included in our Essential Studio v13.2.0.29, it may throw the reported error as your library folder holds 13.1.0.30 version and as DataManager control was not included 13.1.0.30.

We suggest you to uninstall the Syncfusion NuGet Package v13.1.0.30 or you can manually remove the old Syncfusion version references as informed in the below forum.

http://www.syncfusion.com/forums/120014/after-nuget-install-compilation-error

Please let us know if you need any further assistance.

Regards,
Alan Sangeeth S

David Elies
Replied On August 26, 2015 04:09 PM UTC

I'm not sure I understand you.  I cannot use the DataManager with the NuGet packages?  I have to uninstall the NuGet packages in order to get DataManager?  I don't think I can do that. Do you have any other solutions?

Madhu Sudhanan P [Syncfusion]
Replied On August 27, 2015 06:50 AM UTC

Hi David,

You have mentioned as “The library folder which holds our nuget packages, shows versions 13.1.0.30 and 13.2.0.34.” in your update on August 25, 2015  and we suspected that the issue might be due to the presence of two nuget packages of different version and hence in our last update, we suggested you to uninstall the v13.1.0.30 nuget package and use the version v13.2.0.34 to resolve this issue.

Please follow the steps in below link to uninstall the v13.1.0.30.

http://help.syncfusion.com/ug/extension/index.html#!Documents/nugetuninstallationprocess.htm

And please follow the steps in below link to install the latest version 13.2.0.34.

http://help.syncfusion.com/ug/extension/index.html#!Documents/nugetinstallandconfiguration.htm

Now also ensure whether the correct assembly version is provided in the web.config.


<compilation debug="true" targetFramework="4.5">

      <assemblies>

        <add assembly="Syncfusion.EJ, Version=13.2450.0.34, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

        <add assembly="Syncfusion.EJ.Export, Version=13.2450.0.34, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

        <add assembly="Syncfusion.EJ.MVC, Version=13.2500.0.34, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

         . . . . .  . . . . .

      </assemblies>
    </compilation>


With the above steps, now our project will be referred with the latest version DLLs. And also clear the bin folder to remove the old DLLs if any present.

For your convenience, we have also create a simple sample which is created using Nuget package and the same can be downloaded from the below location.

Sample Location:  http://www.syncfusion.com/downloads/support/forum/120026/ze/DataManagerUsingNuget1356231100

In the above sample, we used the DataManager control to load the data in grid as follows.


@(Html.EJ().DataManager("flatData").URL(@Url.Action("DataSource")).CrossDomain(true).Adaptor(AdaptorType.UrlAdaptor))


@(Html.EJ().Grid<object>("Grid").DataManagerID("flatData"))


Please let us know if you have any queries.

Regards,
Madhu Sudhanan. P

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;