Dear sirs
We have been developing with your Viewer for .NET. Once we have turned it into production, we see a banner in red when rendering documents. Please see the attacehd image.
How can we avoid this banner in the producttion enviroment?
Thanks in advance,
JF
Dear Sirs,
I am using the following method to apply the license by opening the file using a stream from the Utilities.vb class:
Public Shared Sub ApplyLicense ()
Dim lic As New License ()
Dim licPath As String = Path.Combine (rootPath, licensePath)
Using st As Stream = File.OpenRead (licPath)
Lic.SetLicense (licensePath)
End Using
End Sub
When I call it from the aspx page, I assign the rootPath path. For testing purposes I am sending a header to the client to check the path:
Utilities.rootPath = HttpContext.Current.Request.PhysicalApplicationPath
Response.AppendHeader (“PathLic”, Path.Combine (Utilities.rootPath, Utilities.licensePath))
Utilities.ApplyLicense ()
Dim ms As New MemoryStream (buffer)
Response.Clear ()
Response.Write (ViewGenerator.RenderDocumentAsHtmlToString (ms, Nothing))
Response.Flush ()
Response.End ()
I have double checked the path to the license file returned in the header and it is absolutely correct.
I also have found that there is no error reading the file, but the message “Evaluation only …” continues to appear.
Any idea why it might happen?
Thank you very much in advance.
José Fernández
- Is the license file working without any issue on your development server?
- Does the application has rights to access (read) the license file?
- Please share with us the version of GroupDocs.Viewer for .NET API you are using.
- Please share with us the subscription expiry date (you can find your subscription expiry date in your license file).
Thanks to you for your help.
1 Is the license file working without any issue on your development server?
Yes, in the development i haven’t any problem
2 Does the application has rights to access (read) the license file?
Yes, the application has access and the file load by stream without errors, the IIS_IUSRS has read permissions
3 Please share with us the version of GroupDocs.Viewer for .NET API you are using.
4 Please share with us the subscription expiry date (you can find your subscription expiry date in your license file).
20180707
Public Shared Sub ApplyLicense ()
Dim lic As New License ()
Dim licPath As String = Path.Combine (rootPath, licensePath)
Using st As Stream = File.OpenRead (licPath)
Lic.SetLicense (licensePath)
End Using
End Sub
Dim lic As New License ()
Dim licPath As String = Path.Combine (rootPath, licensePath)
Using st As Stream = File.OpenRead (licPath)
Lic.SetLicense (st)
End Using
End Sub
Thank you so much for your help, i not saw the error.
Your article reflects the issue people are concerned about. The article provides timely information that reflects multi-dimensional views from multiple perspectives. I look forward to reading quality articles that contain timely information from you. fblogin.