MVC sample app not working

I am trying to get the sample app working with MVC. I tried with version 2 of the library and while the app compiled and ran, i got a blank page on the browser, it looks like the JS script was not running properly - i expect to see the rendered PDF. (We are only using this for PDF display).

I then tried upgrading to version 3 but it looks like the references have all changed

For example the old references were:

GroupDocs.Web.UI.Viewer.InitRoutes();
GroupDocs.Web.UI.Viewer.SetLicensePath("");
GroupDocs.Web.UI.Viewer.SetRootStoragePath(Server.MapPath("~/testfiles/"));


So…i’m not sure what to do. We’d love to purchase this product for a large deployment, but I can’t even get the sample working. It’s a shame you don’t have a canned demo project that works with MVC, at least not to my knowledge. Attached is my project. Help very much welcome. Thanks.

Edit: It looks like version 3 does not have a front end UI like version 2 does? In that case, how to get version 2 working? I need this sample project to work in MVC, bottom line, to render and display PDFs. Thanks.


Hi,


We are sorry to hear that you have such issue. First of all I want to share with you a documentation for how to create a UI with the 3.x version of the Viewer. Also I can recommend you to migrate to the 3.x Viewer because if you will get nay issues in the 2.x version they will not be fixed in it - only in 3.x version so you will need to migrate at any case if you will need to get new features and fixes.

Best regards.

Hello gibbie,


Thank you for showing your interest in GroupDocs.Viewer 3.x.

It looks like version 3 does not have a front end UI like version 2 does? In that case, how to get version 2 working? I need this sample project to work in MVC, bottom line, to render and display PDFs. Thanks.

Exactly you are saying right. The new GroupDocs.Viewer 3 is a UI-less API exposing only UI-less+back end document rendering APIs in which object oriented approach has been implemented in a very simplified way.

However, we have made our front end as open sourced, in the form of sample projects. The sample project of MVC using 3.x is available here. Please download and try this.



Please find below some resources to quickly get started:

GroupDocs.Viewer Downloads: http://groupdocs.com/Community/files/8/.net-libraries/groupdocs_viewer_for_.net/category1002.aspx
GroupDocs.Viewer Docs: http://groupdocs.com/docs/display/viewernet
GroupDocs.Viewer Examples: https://github.com/groupdocsviewer/GroupDocs_Viewer_NET
GroupDocs.Viewer Videos: https://www.youtube.com/channel/UCgO8dwgI5KAsQCVegviVXYA/playlists

Happy Coding!