API URL Change

Hi


We tried Group Docs 3.6.0 version for POC in our company. We tried to integrate it in our application and we moved the api’s in “Viewer” controller to another controller named “Test”. Unfortunately the api’s are still routing to “<span style=“color: rgb(34, 34, 34); font-family: Consolas, “Lucida Console”, monospace; font-size: 12px; white-space: pre-wrap; background-color: rgb(255, 255, 255);”>http:/…/document-viewer/ViewDocument”. We would like to change it to “<span style=“color: rgb(34, 34, 34); font-family: Consolas, “Lucida Console”, monospace; font-size: 12px; white-space: pre-wrap; background-color: rgb(255, 255, 255);”>http:/…/test/ViewDocument”. Please help us change it at the invoking point so that we can integrate it in our application, otherwise it will get conflict with our current route configuration.


Thanks
Samphu

Hi Samphu,


Thanks for using GroupDocs.Viewer for .NET.

In order to change the route configuration you will have to change URL Prefix (…/document-viewer/…) in multiple files. I have attached the screenshots of the all the locations where you will have to apply the changes in URL. Just replace document-viewer with test and check if it is working for you. Please try and share the feedback with us.

In case of any confusion, please feel free to contact us.

Warm Regards

Hi Usman


Thanks for your response.
I tried to refer the DocumentCache class for removing the temporary files used by the Viewer. But unfortunately didn’t find it’s namespace or reference. Can you provide me the information or suggest a method to remove the Cache/ Temporary files for the same.


Thanks
Samphu

Hi Samphu,


Thanks for sharing your issue.

Yes, you can remove cashed/temporary files using ClearCache() method. For details on how to use this method, please visit http://www.groupdocs.com/docs/display/viewernet/Removing+Cache+Files. In case of any issue, please feel free to contact.

Warm Regards