Free Support Forum -

Orchard integration


Is it possible to use Viewer in Orchard CMS for viewing files stored on my own server? As I understand in the example viewer integrated via iframe mapped to and documents in this case should be stored on But I need a tool without any external dependencies.

If Viewer is suitable for my needs, could you please provide an example based on Orchard CMS.



Thank you for your interest in GroupDocs. Yes, you can use GroupDocs.Viewer for .NET library in your Orchard project. For how to use the library please investigate this documentation . Then you should create a web page with the Viewer or develop custom Orchard plugin with the Viewer.

If you will have any questions please feel free to contact us.

Best regards.


Still can not manage to make it work.

Here is what I did (Orchard 1.8.1, .NET Framework 4.5, GroupDocs 2.13):
protected void Application_Start() {
_starter = new Starter(HostInitialization, HostBeginRequest, HostEndRequest);

web.config (placed in app root)

@using Groupdocs.Web.UI
@using(Script.Head()) {


Reload the page. Result (from browser’s console): in attachments
All calls to urls like /document-viewer/… are failed with 404 error.

Please help me to run GroupDocs under Orchard.



Thank you for the examples. At the first look your approach and code is correct. We have reproduced your issue and now we works on how to resolve it. Sorry but this will take some time (we will try to resolve it soon). When we will have any news for you, you will be notified here.

Sorry for the inconvenience.



Sorry for the delay. We have discussed this issue with the Orchard and they advised to use “Owin Middleware” instead of http handlers. It’s easier to do and will have access to all Orchard services besides being compatible with multi tenancy.

You can find a tutorial here:

Thank you.


Thank you. With Owin it works.



Thank you for the feedback and glad to hear that all works now.

Best regards.