Free Support Forum -

SharePoint 2013 Integration issue

We have a problem with SharePoint 2013 integration.
1. We added Visual Web Part.
2. To code behind added such code:

protected void Page_Load(object sender, EventArgs e)
this.Controls.Add(new Literal() { Text = Groupdocs.Web.UI.Viewer.CreateScriptLoadBlock().LoadJquery().LoadJqueryUi().UseHttpHandlers().ToString() });
this.Controls.Add(new Literal() { Text = GetInlineDocumentScript() });

private string GetInlineDocumentScript()
string groupdocsViewerScript;
using (FileStream fileStream = new FileStream(@“C:\Viewer\Microsoft.Building Web Applications with SVG.pdf”, FileMode.Open))
groupdocsViewerScript = Groupdocs.Web.UI.Viewer.ClientCode()
.Stream(fileStream, “pdf”)
return groupdocsViewerScript;
3. When we have modified web.config on the appropriate application pool, and added such configuration section:


<add name=“ViewDocumentHandler” verb="" path=“document-viewer/ViewDocumentHandler” type=“Groupdocs.Web.UI.Handlers.ViewDocumentHandler, Groupdocs.Viewer, Culture=neutral” />
<add name=“GetDocumentPageImageHandler” verb="" path=“document-viewer/GetDocumentPageImageHandler” type=“Groupdocs.Web.UI.Handlers.GetDocumentPageImageHandler, Groupdocs.Viewer,Culture=neutral” />

<add name=“LoadFileBrowserTreeDataHandler” verb="" path=“document-viewer/LoadFileBrowserTreeDataHandler” type=“Groupdocs.Web.UI.Handlers.LoadFileBrowserTreeDataHandler, Groupdocs.Viewer, Culture=neutral” />

<add name=“GetImageUrlsHandler” verb="" path=“document-viewer/GetImageUrlsHandler” type=“Groupdocs.Web.UI.Handlers.GetImageUrlsHandler, Groupdocs.Viewer, Culture=neutral” />
<add name=“GetCssHandler” verb=“GET” path=“document-viewer/CSS/GetCssHandler” type=“Groupdocs.Web.UI.Handlers.CssHandler, Groupdocs.Viewer, Culture=neutral” />

<add name=“images” verb=“GET” path=“document-viewer/images/" type=“Groupdocs.Web.UI.Handlers.EmbeddedImageHandler, Groupdocs.Viewer, Culture=neutral” />

<add name=“fonts” verb=“GET” path="document-viewer/fonts/” type=“Groupdocs.Web.UI.Handlers.GetFontHandler, Groupdocs.Viewer, Culture=neutral” />

<add name=“GetScriptHandler” verb=“GET,POST” path=“document-viewer/GetScriptHandler” type=“Groupdocs.Web.UI.Handlers.ScriptHandler, Groupdocs.Viewer, Culture=neutral” />
<add name=“GetFileHandler” verb=“GET” path=“document-viewer/GetFileHandler” type=“Groupdocs.Web.UI.Handlers.GetFileHandler, Groupdocs.Viewer, Culture=neutral” />

<add name=“GetPdf2JavaScriptHandler” verb=“GET,POST” path=“document-viewer/GetPdf2JavaScriptHandler” type=“Groupdocs.Web.UI.Handlers.GetPdf2JavaScriptHandler, Groupdocs.Viewer, Culture=neutral” />

<add name=“GetPdfWithPrintDialogHandler” verb=“GET,POST” path=“document-viewer/GetPdfWithPrintDialogHandler” type=“Groupdocs.Web.UI.Handlers.GetPdfWithPrintDialogHandler, Groupdocs.Viewer, Culture=neutral” />
<add name=“GetPrintableHtmlHandler” verb=“GET,POST” path=“document-viewer/GetPrintableHtmlHandler” type=“Groupdocs.Web.UI.Handlers.GetPrintableHtmlHandler, Groupdocs.Viewer, Culture=neutral” />

<add name=“GetResourceForHtmlHandler” verb=“GET,POST,HEAD” path=“document-viewer/GetResourceForHtmlHandler” type=“Groupdocs.Web.UI.Handlers.GetResourceForHtmlHandler, Groupdocs.Viewer, Culture=neutral” />

<add name=“GetDocumentPageHtmlHandler” verb=“GET,POST” path=“document-viewer/GetDocumentPageHtmlHandler” type=“Groupdocs.Web.UI.Handlers.GetDocumentPageHtmlHandler, Groupdocs.Viewer, Culture=neutral” />
<add name=“ReorderPageHandler” verb=“GET,POST” path=“document-viewer/ReorderPageHandler” type=“Groupdocs.Web.UI.Handlers.ReorderPageHandler, Groupdocs.Viewer, Culture=neutral” />

<add name=“RotatePageHandler” verb=“GET,POST” path=“document-viewer/RotatePageHandler” type=“Groupdocs.Web.UI.Handlers.RotatePageHandler, Groupdocs.Viewer, Culture=neutral” />


4. We give appropriate rights on the folder, where GroupDocs document component process the data.
5. Finally we have an error in attachment.

Hello Roman,

We are sorry to hear that you have such issue. We checked your code and found out that part of the code which you shared with us is ok. We used it in our Visual Web Part and it’s worked well for us. Since that could you please share with us an entire code of the ascx and ascx.cs files of your Visual Web Part that we can check them.

If possible you can send to us your Visual Web Part and we will check and fix it for you. If it’s not possible you can try to use our Visual Web Part .

If you will have more question please feel free to contact us.

The link that you have provided is not Visual Web Part solution. It is SharePoint activity solution. Can you please share a solution that contain Visual Web Part?


Hi Bhavin,

Thank you for coming back. Unfortunately we have only this SharePoint plugin which I have shared with you earlier. Please use the plugin or create your own solution based on the plugin.

Also please note that we have released a next generation Viewer library and if possible you should migrate on it. If you will have any questions or issues with it please make a new forum request and mark it with 3.0 version in the subject.

Best regards.


I have updated GroupDoc viewer DLL to version 3.2 in my SharePoint project. After adding a latest reference of the DLL my code started giving me error. We have noticed that there are certain method is missing. Please see below image for detail error. Kindly do needful asap.