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.

cant get Syncfusion.Shared.Mvc dll.

Thread ID:

Created:

Updated:

Platform:

Replies:

119579 Jul 7,2015 02:14 PM Jul 23,2015 06:12 AM ASP.NET MVC (Classic) 14
loading
Tags: Grid
MichalMaka
Asked On July 7, 2015 02:14 PM

Hi All.
I would like to start to use syncfusion controls in my projects, but I can't figure how to add all the assamblies to my solution.
I managed to add :

Syncfusion.Core
Syncfusion.Linq.Base

I can't get 
Syncfusion.Shared.Mvc dll.


What I did so far:
-I used assembley mnager
-I downloaded MVC Extensions

What I should do to start.
Thanks

Kanimozhi Pandian [Syncfusion]
Replied On July 8, 2015 12:39 PM

HI MichalMaka,

The assembly “Syncfusion.Shared.Mvc dll.” belongs to Syncfusion ASPMVC(Classic) Platform.
Please perform the below steps to add the Syncfusion.Shared.MVC.dll to your project.

For Build Versions prior to 13.2.0.29 (<13.2.0.29):
1.     Syncfusion Essential Studio (or) ASPNETMVC(Classic) platform build should be installed first.
2.     Then Syncfusion MVC Extension should be installed.
3.     Once these setups are installed you can add required assembly From Visual Studio using Syncfusion Conversion utility. Please refer below screenshot for more information.


4.     Please refer this link to know more about Project Conversion tool.

http://help.syncfusion.com/ug/extension/Documents/projectconversion.htm


For Build Version 13.2.0.29 and above:

1.     Syncfusion Essential Studio (or) ASPNETMVC(Classic) platform build should be installed first.
2.     Once installed Please navigate to the following location.

{Build Installed location\Utilities\Extensions\ASP.NET MVC\Project Conversion\Framework}


EX: C:\ProgramFiles\Syncfusion\EssentialStudio\13.2.0.29\Utilities\Extensions\ASP.NET MVC\Project Conversion\4.5

Note: Framework should be chosen based on your Visual Studio version


3.     There you can find a file called “Syncfusion Web (Classic) Conversion and Migration.VSIX”.Please refer below screenshot for more information.



4.     Double click on it. Now the tool has been installed to your machine successfully.
5.     Restart your Visual studio and start utilizing conversion tool. Please refer below screenshot for more information.



Now the Syncfusion.Shared.MVC and other required dependent assemblies will be added to your project once the Project Conversion wizard completed.


Please let me know if you have any queries.


Thanks,

Kanimozhi.K.P.


MichalMaka
Replied On July 8, 2015 03:03 PM

Hi Kanimozhi.
Thanks for reply.

Can I do it with NuGet? I managed to install Syncfusions packages via nuget but I the only controls I can use are @Html.EJ().

If I understand right EJ stands for SyncfusionJavaScript no MVC?

Am I correct?


MichalMaka
Replied On July 9, 2015 03:22 AM

Hi Kanimozhi.
I managed to do as you sad.
But now I have this error:
The type or namespace "JavaScript" does not exist in the namespace "Syncfusion" (or missing an assembly reference?).

Via nuget I added SyncfusionJavaScript but this does not work.
Please Help
Best regards
Michał

Kanimozhi Pandian [Syncfusion]
Replied On July 9, 2015 12:34 PM

Hi MichalMaka,

Please find Responses for your queries below:

Query 1:

Can I do it with NuGet? I managed to install Syncfusions packages via nuget


Response:

Yes. You can use the Syncfusion NuGet packages.

You can get the Syncfusion NuGet installation and configuration details from below UG link.

http://help.syncfusion.com/ug/extension/Documents/syncfusionnugetpackages.htm

Query 2:

but I the only controls I can use are @Html.EJ().

If I understand right EJ stands for SyncfusionJavaScript no MVC?

Am I correct?

Response:

The suite of ASP.NET MVC controls which was offered as "Essential Studio for ASP.NET MVC" till the Volume 4 2013 release has been marked as "Classic" and the newer set of controls powered by Essential JavaScript takes its place. The newer ASP.NET MVC uses @Html.EJ() and Classic ASP.NET MVC uses @Html.Syncfusion(), both the platforms are different from each other and uses corresponding DLLs. Similarly we have separate NuGets for Classic MVC and new MVC controls. Could you please confirm the platform and control you are working with?

Refer the table below and follow the steps as per your desired platforms,

ASP.NET MVC Classic
ASP.NET MVC (EJMVC)
Assemblies
Syncfusion.Core
Syncfusion.Linq.Base
Syncfusion.Shared.MVC
Syncfusion.Tools.MVC
Syncfusion.Theme.Base

Syncfusion.Core
Syncfusion.EJ
Syncfusion.EJ.MVC

Extension
http://help.syncfusion.com/ug/asp.net%20mvc/Documents/syncfusionmvcprojecttemplates.htm
http://help.syncfusion.com/ug/extension/Documents/aspnetmvcextension.htm
NuGet Package
SyncfusionASPMVC<version>Classic<Framework>
For eg: SyncfusionASPMVC5Classsic451

SyncfusionASPMVC<version><Framework>
For eg: SyncfusionASPMVC545


Query 3:

I managed to do as you sad.

But now I have this error:

The type or namespace "JavaScript" does not exist in the namespace "Syncfusion" (or missing an assembly reference?).

Via nuget I added SyncfusionJavaScript but this does not work.

Please Help

Response:
We will get back to you at the earliest. We will appreciate your patience until then.

Thanks,
Kanimozhi.K.P.



MichalMaka
Replied On July 9, 2015 01:32 PM

Thank fo reply.

"Could you please confirm the platform and control you are working with? "
Right now I'm using "ASP.NET MVC Classic"; yesterday I downloaded "syncfusionessentialstudiosetup" ver.13.2.0.29 and "syncfusionessentialsextension".

Thanks for help.
Best regards
Michał


Ezhil S [Syncfusion]
Replied On July 10, 2015 08:53 AM

Hi Michal,

Thanks for your update.

Manual Configuration:
For configuring MVC application to use Syncfusion MVC Classic control, you have to configure the StyleManager, ScriptManager and refer the required assemblies.
Please follow the steps in the link below: http://help.syncfusion.com/ug/asp.net%20mvc/Documents/howtoaddessentialtoolstoanmvc4application.htm
Using Extension:
Once you have installed the Essential Studio Extension build follow the steps below to create MVC Classic controls,
1)      Open Visual Studio, click File-> New -> Project and you will get the below window


2)      Select the Syncfusion ASP.NET MVC Application(Classic) and click ok. In the Project configuration Wizard, choose the required version and theme details and check the Add Samples check box to create templated sample for getting started the click Next.


3)      Select the required product and corresponding control from the wizard, then click create.


4)      Now MVC Classic sample will created with required DLL references.
Using Migration: Refer the steps in the following link, http://help.syncfusion.com/ug/asp.net%20mvc/Documents/mvcprojectmigrationutility.htm

Using NuGet package: Installing NuGet package will add Classic MVC references and corresponding configurations in Web.config file. If you need to install Syncfusion ASP.NET MVC(Classic), Please use the following NuGet ID,
Package Id Format : Syncfusion.ASPNETMVC{MvcVersion}Classic{Frameworkversion}{buidversion}
For example: SyncfusionASPMVC5Classic451.13.1.0.21

Sample link: http://www.syncfusion.com/downloads/support/directtrac/141208/ze/SyncfusionMvcApplication31038046819
Please let us know if you have any queries.

Regards,
Ezhil S

MichalMaka
Replied On July 13, 2015 05:41 PM

Hi Ezhil.
Thanks for help, somehow I managed to run yours controls on local and on production, but now every time Razor renders contrls with:

style="visibility:hidden"


Do you have any advice how t resolve this issue?

Best regards
Michał

Ezhil S [Syncfusion]
Replied On July 14, 2015 06:50 AM

Hi Michal,

Thanks for the update.

Query: Every time Razor renders controls with: style="visibility: hidden"
                To be even more clear, not all the Syncfusion MVC classic controls render with style=“visibility: hidden” to hide the content on the web page before the control is rendered completely using the script resource. Also you may get the visibility as hidden and control will not be rendered, when the MvcResourceHandler version in web.config file under handler sections in system.web and system.webserver section mismatches with Syncfusion MVC assembly version referred in your application.
<code>
[Web.Config]

  <system.web>

    <httpHandlers>

      <add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />

      <add verb="*" path="sfgenerate_tools.axd" type="Syncfusion.Mvc.Tools.ImageHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />

    </httpHandlers>

  </system.web>

  <system.webServer>

    <handlers>

     

      <add verb="GET,HEAD" name="MvcResourceHandler" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

      <add verb="*" path="sfgenerate_tools.axd" name="syncfusion_generatetools" type="Syncfusion.Mvc.Tools.ImageHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

    </handlers>
  </system.webServer>
</code>
If this is not the issue at your end, could you please explain us on the issue you are facing? Also the control you have used at your end and scenario to reproduce the issue you are facing.

Please let us know if you have any queries.

Regards,
Ezhil S


MichalMaka
Replied On July 14, 2015 01:58 PM

Hi Ezhil
Unfortunately that didn't work.
It's simple code:
RAZOR:
   @(Html.Syncfusion().Grid<News>(
                     "News_Grid", "GridModel", column =>
                    {
                        column.Add(p => p.Title).HeaderText("Tytuł");
                        column.Add(p => p.Content).HeaderText("Treść wiadomości");
                    })
    )

Controller:
GridPropertiesModel<News> model = new GridPropertiesModel<News>()
            {
                DataSource = db.News.ToList(),
                ShowCaption = true,
                AutoFormat = Syncfusion.Mvc.Shared.Skins.Marble
                
            };
            ViewData["GridModel"] = model;

Nothing special in it.
Thanks for help

Kavitha Narayanan [Syncfusion]
Replied On July 15, 2015 06:33 AM

Hi Michal,

Sorry about the inconvenience caused.

We suspect that the issue is reproduced by without using the StyleManager() and ScriptManager().

Please ensure the following steps.

1. Add the StyleManager extension method in the head tag of the layout page.

@(Html.Syncfusion().StyleManager().Combine(true).Minify(true)

2. Use the Register() method to add the Syncfusion component name(Grid).If we are using gridcontrol, then we have to add componentType is grid

.Register(component =>

{

component.Add(ComponentType.Grid);

})

3. Add the ScriptManager() method in the body tag of the layout page.

@{Html.Syncfusion().ScriptManager().Combine(false).Minify(false).Render();}

4. Ensure that the correct Syncfusion version (v13.2) is used in project and Web.config file.

5.Ensure that the same MVC version is used in project and web.config file. If we are using system.web.mvc version is 5 or 4 or 3, then we have refer the corresponding DLL version.

For example:

[MVC 5]

< targetFramework="4.5.1">

<add assembly="Syncfusion.Grid.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

[MVC 4]

< targetFramework="4.5">

<add assembly="Syncfusion.Grid.Mvc, Version=13.2400.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

[MVC 3]

< targetFramework="4.0">

<add assembly="Syncfusion.Grid.Mvc, Version=13.2300.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

If the issue still there, please send to us issue replicated sample.

For your reference, we have attached a sample.

Sample: http://www.syncfusion.com/downloads/support/forum/119579/Gridsample1792066216.zip

Please let us know if you have any queries.

Regards,

Kavitha N.


MichalMaka
Replied On July 20, 2015 03:48 PM

Hi Kavitha I think we are almost there:)
Recent problems:

 http://localhost:15842/Scripts/js/jquery-1.8.2.min.js 
admin:12 GET http://localhost:15842/MvcResourceHandler.axd?k=css&r=[%271383575932%27,%27…0992841%27,%27-1375272176%27,%272062289305%27,%27957717458%27]&minify=True 
admin:89 GET http://localhost:15842/MvcResourceHandler.axd?k=js&r=[%27-536430075%27]&minify=False 
admin:87 GET http://localhost:15842/MvcResourceHandler.axd?k=js&r=[%27225271722%27]&minify=False 
admin:91 GET http://localhost:15842/MvcResourceHandler.axd?k=js&r=[%2779270727%27]&minify=False 
admin:93 GET http://localhost:15842/MvcResourceHandler.axd?k=js&r=[%27521620579%27]&minify=False 
admin:75 GET http://localhost:15842/bundles/bootstrap 
admin:85 GET http://localhost:15842/MvcResourceHandler.axd?k=js&r=[%27-1388784113%27]&minify=False 
admin:95 GET http://localhost:15842/MvcResourceHandler.axd?k=js&r=[%27-823410404%27]&minify=False 
admin:99 GET http://localhost:15842/MvcResourceHandler.axd?k=js&r=[%271696847025%27]&minify=False 
admin:97 GET http://localhost:15842/MvcResourceHandler.axd?k=js&r=[%271409450416%27]&minify=False 
admin:101 GET http://localhost:15842/MvcResourceHandler.axd?k=js&r=[%271483561622%27]&minify=False 

Maybe I dont have some libraries in Bin folder.
Please let me know what you think...If nothing wokrs I will try to do some basic project for you. 
Best regards 
Michał

Shanmugaraja K [Syncfusion]
Replied On July 21, 2015 05:17 AM

Hi Michal,

Thanks for your update.

We are unable to reproduce the issue in our end with the attached sample in our previous update. However, we suspect that you might have missed to refer MvcResourcehandler in web.config file. So, we suggest you to refer MvcResourcehandler inside the httphandlers and handlers tag. Please refer the following code example.

[Web.Config]

<system.web>
….

<httpHandlers>

<add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />

</httpHandlers>

</system.web>

<handlers>
….

<add verb="GET,HEAD" name="MvcResourceHandler" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

</handlers>

….


Please try the above code in your sample. If it does not resolve the issue as you stated, please provide the issue replicated sample with us, so that we can sort out the issue and provide you a better solution.


Please let us know if you need further assistance.


Regards,

Shanmugaraja K


MichalMaka
Replied On July 22, 2015 05:10 PM

Hi Team.
Somehow I managed to do sample project from my solution but becaouse of Maximum FileSize I have to remove:
1. EntityFramework.dl 
2. Identit.dll

All Images and js files etc.
I hope you can resolve my problem despite of lack of dll's.

Thanks for help
Best regards
Michał



Attachment: Przychodnia3Sync_28ae5062.rar

Kavitha Narayanan [Syncfusion]
Replied On July 23, 2015 06:12 AM

Hi Michal,

Thanks for your update.

As we mentioned earlier, please ensure that the same MVC version is used in both project and webconfig file. We suspect that the issue is occurring while using different version in webconfig file.

1. Please refer the following table for MVC versions

MVC Version

In Webconfig(Shared.Mvc,Grid.MVC, Tools.Mvc, XlsIO.Mvc, DocIO.Mvc)

System.Web.Mvc Version-5

Please refer the corresponding DLL version in project and webconfig file.

<add assembly="Syncfusion.Grid.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

<add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />

System.Web.Mvc Version-4

<add assembly="Syncfusion.Grid.Mvc, Version=13.2400.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

<add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2400.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />

System.Web.Mvc Version-3

add assembly="Syncfusion.Grid.Mvc, Version=13.2300.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />

<add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2300.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />

2. Add the _Layout.cshtml file with include style and Script manager.

3 In your sample, we have not found any code for grid control. So, we have added grid control in your sample.

4. The below code example has to be added for rendering the grid.

[cshtml]

@{ Html.Syncfusion().Grid<Przychodnia3.Models.Student>("Grid")

.EnablePaging()

.EnableSorting()

.ActionMode(ActionMode.JSON)

.Column(column =>

{

column.Add(c => c.UniversityCode).HeaderText("University Code");

column.Add(c => c.Title).HeaderText("Title");

column.Add(c => c.Duration).HeaderText("Duration");

column.Add(c => c.CourseFees).HeaderText("CourseFees");

column.Add(c => c.CGPA).HeaderText("CGPA");

}).Render();

}

[controller]

public ActionResult Index()

{

ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";

ViewData["NewsList"] = new StudentDataContext().Student.Take(10).ToList();

return View();

}

[AcceptVerbs(HttpVerbs.Post)]

public ActionResult Index(PagingParams args)

{

IEnumerable data = new StudentDataContext().Student.Take(10).ToList();

return data.GridJSONActions<Student>(); //JSON mode

For your reference, we have modified your attached sample. And also we request you to refer the UG link:

UG link: http://help.syncfusion.com/ug/asp.net%20mvc/index.html#!Documents/throughgridbuilder.htm

Sample: http://www.syncfusion.com/downloads/support/forum/119579/sample737014330.zip

Please let us know if you have any queries.

Regards,

Kavitha N.


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.

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.

;