Free Support Forum - groupdocs.com

Group Docs NLB Issue


#1

Hi,


We are using the GroupDocs viewer (version 2.2) in a NLB web server environment to ‘read’ files stored in SharePoint.

In situations where the current user is on one webserver and the GroupDocs instance is handled by another, we are regularly receiving ‘Value cannot be null. Parameter name: path2’.

Attached is a screenshot of the error and below is a sample of the code we are using:

@Html.CreateViewerScriptLoadBlock().LoadJquery().LoadJqueryUi()
<div id=“documentPreviewWindow”></div>

@(Html.ViewerClientCode()
.TargetElementSelector("#documentPreviewWindow")
.Stream(Model.FileStream, Path.GetFileName(Model.UniqueFileName), Path.GetExtension(Model.FileName).TrimStart('.'), Path.GetFileName(Model.FileName))
.ShowFolderBrowser(false)
.PreloadPagesCount(3)
.EnableRightClickMenu(false)
.ShowThumbnails(true)
.OpenThumbnails(false)
.Zoom(75)
.Width(Model.Width)
.Height(Model.Height)
.ShowDownload(Model.ShowDownloadButton)
.ShowPrint(Model.ShowPrintButton)
.Quality(75)
.SupportTextSelection(false)
.ShowSearch(false)
.UseHtmlBasedEngine(true)
.ShowOnePageInRow(true)
)

Does anyone have any thoughts or suggestions on how to get around this?


#2

Hello,


We are sorry to hear that you have such issue. First of all we see that you use very old version of the Viewer, please update it from here . A lot of issues were fixed since 2.2 version, since that please try with the latest version and notify us with the results.

Thank you.

#3

Apologies for the slow response.


I can now confirm that updating the the latest 2.11 release has not resolved the NLB issue we are experiencing.

#4

Hello,


Thank you for coming back. From the issue description is hard to understand what is wrong, you code looks like ok. Could you please share with us the solution example (Viewer).

Thank you.