Free Support Forum - groupdocs.com

Licesnse issue in Group docs


#1

Hi,

We have purchased Groupdocs viewer developer OEM license and applied successfully in asp.net but some times we are getting below screenshot message . We are using groupdocs viewer 2.17 . If we haven’t applied correctly we should receive below error regularly. Please let us know how to fix this and why we are seeing this message.
http://screencast.com/t/4h9gB8B9H0


#2

Hi,


We are sorry to hear that you have such issue. First of all I glad to inform you that we have released a next generation Viewer library (3.0 version) and if possible you should migrate on it.

If migration doesn’t possible for now please update your library to version 2.19 and try again.

Also if possible can share with me example of your project with your license that I can check and fix it for you.

Best regards.

#3

Hi,

This unlicense issue is not coming up regularly. We received screenshot from our customer. I’ve attached our code for your reference.Thanks

#4

Hi,


Thank you for the code example. Based on your code I can see two things that you should change:

1. Move this code:

Viewer.SetRootStoragePath(Server.MapPath(@"~/documents"));
Viewer.SetLicensePath(@“C:\inetpub\wwwroot\TalentRover\Licence\GroupDocs.Viewer.lic”);

from the “Page_load” action to the Globals in to the “Application_Start” action

2. Put the license file to the project root or to the any folder inside the project and include it with such code:

Viewer.SetLicensePath(Server.MapPath("~/GroupDocs.Viewer.lic"));

Best regards.