Issue in GroupDocs viewer - Sharepoint project

Last post 01-10-2017, 1:41 PM by Usman Aziz. 19 replies.
Page 1 of 2 (20 items)   1 2 Next >
Sort Posts: Previous Next
  •  07-01-2016, 12:59 PM 13676

    Issue in GroupDocs viewer - Sharepoint project .NET

    Attachment: Present (inaccessible)
    Hi,

    I have integrated group docs viewer in sharepoint successfully and I am currently using temporary license. But from last two days I am facing issues in below line execution.

    License lic = new License();

    I have attached screen shot regarding the error.

    Things I already tried:
    1) Created one console app and is working fine in it.
    2) Created another demo sharepoint project, but didn't worked.
    3) Restarted my VM, but didn't worked.

    It was all working fine previously, but now it is failing and throwing error related to "GroupDocs.foundation" not found.

    Can you please suggest a solution in this.

    Thanks,
    Jayesh



     
  •  07-01-2016, 1:27 PM 13677 in reply to 13676

    Re: Issue in GroupDocs viewer - Sharepoint project

    Attachment: Present (inaccessible)
    Hi Jayesh,

    Thanks for using GroupDocs.Viewer for .NET.

    From the exception message, I guess you need to set deployment target as "WebApplication" in Package.package. Please see the attached screenshot for how to change deployment target. This should help you to get rid of this issue. Please try and share your feedback. 

    Have a nice weekend ahead.

    Warm Regards

    Usman Aziz

    Support Developer
    GroupDocs Support Team
    http://groupdocs.com
    Your Document Collaboration APIs
     
  •  07-02-2016, 6:25 AM 13687 in reply to 13677

    Re: Issue in GroupDocs viewer - Sharepoint project

    Attachment: Present (inaccessible)
    Hi Usman,

    Thanks for your response. As per your mentioned suggestion the error related to license gone but now another error is coming up. I have attached screen shot for the same.

    Thanks,
    Jayesh
     
  •  07-05-2016, 4:07 AM 13715 in reply to 13687

    Re: Issue in GroupDocs viewer - Sharepoint project

    Hi Jayesh,

    Thanks for posting your issue.

    The error message you sent in screenshot is related to reference of GroupDocs.Viewer assembly. This type of issue often occurs when the reference is added for a different version of the API and application is using assembly of some other version. Please try to remove the reference entry for GroupDocs.Viewer and delete associated assembly files from your project and add reference again manually. Please try and check if the issue is vanished.

    We shall be waiting for your response.

    Warm Regards 

    Usman Aziz

    Support Developer
    GroupDocs Support Team
    http://groupdocs.com
    Your Document Collaboration APIs
     
  •  07-05-2016, 12:08 PM 13736 in reply to 13715

    Re: Issue in GroupDocs viewer - Sharepoint project

    Attachment: Present (inaccessible)
    Hi Usman,

    Thanks for your support. 

    This issue resolved only by upgrading to 3.4.0 from 3.3.0 version.

    I am having another query regarding the temp folder and files which created in storage path. For the mechanism to delete this temp folder and files, I came around below links for the same topic:

    http://www.groupdocs.com/docs/display/viewernet/Description+of+GroupDocs.Viewer+DocumentCache+class

    http://www.groupdocs.com/docs/display/viewernet/Removing+Cache+Files

    But when I tried to use "viewerImageHandler.ClearCache(OlderThanDays);" showing me error(screen shot is attached for the same). And same thing happens with the "DocumentCache" class.

    Please guide through how to implement deletion of temp folder and files. Also I wanted to know the best practice to implement the same.

    Is the "cache" or creation of "temp folders/files" are same thing?

    Thanks,
    Jayesh



     
  •  07-05-2016, 6:32 PM 13745 in reply to 13736

    Re: Issue in GroupDocs viewer - Sharepoint project

    Hi Jayesh,

    Its good to know that your issue is resolved.

    Please note that ClearCache() method receives TimeSpan as parameter. Try below code to clear cache files older than specified days.

    viewerImageHandler.ClearCache(TimeSpan.FromDays(1)); 

    Secondly, GroupDocs.Viewer API uses temp folder as default cache directory if you don't set cache path in configuration. Both, cache folder in configuration and temp folder, are used for same purpose.

    If you have any further questions, please let us know.

    Warm Regards

    Usman Aziz

    Support Developer
    GroupDocs Support Team
    http://groupdocs.com
    Your Document Collaboration APIs
     
  •  07-06-2016, 6:16 AM 13753 in reply to 13745

    Re: Issue in GroupDocs viewer - Sharepoint project

    Hi Usman,

    The error I mentioned regarding ClearCache()  is that there is no such method found in ViewerImageHandler class.

    Thanks,
    Jayesh
     
  •  07-06-2016, 4:01 PM 13770 in reply to 13753

    Re: Issue in GroupDocs viewer - Sharepoint project

    Hi Jayesh,

    We apologize for inconvenience.

    Please make sure that you are using GroupDocs.Viewer for .NET 3.3.0 or greater. However, we are also investigating your issue at our end and shall get back to you shortly. Please stay tuned with us.

    Warm Regards

    Usman Aziz

    Support Developer
    GroupDocs Support Team
    http://groupdocs.com
    Your Document Collaboration APIs
     
  •  07-11-2016, 10:08 AM 13820 in reply to 13770

    Re: Issue in GroupDocs viewer - Sharepoint project

    Hi Usman,

    Thanks for your constant support. 

    I wanted to know whether the issue I mentioned in our previous conversation regarding "ClearCache() not found" is resolved or not.

    Secondly I have another question regarding the printing of document. Actually I want to directly print document (not using the print button in Viewer) even though the document is not loaded in groupdocs viewer. So is there any method provided so that I can directly Print the document or any callback function that can print the document after the document is loaded in viewer.

    Thanks,
    Jayesh
     
  •  07-11-2016, 12:02 PM 13822 in reply to 13820

    Re: Issue in GroupDocs viewer - Sharepoint project

    Attachment: Present (inaccessible)
    Hi Jayesh,

    I have investigated your issue related to ClearCache method but could not reproduce it at my end. There could be two possible reasons behind this issue

    1. You are using API version lesser than 3.3.0.
    2. You are passing invalid NoOfDays parameter inside ClearCache method.

    Please note that the API provides two methods to clear cache files.

    • ClearCache() - Clears all files in the cache directory
    • ClearCache(TimeSpan.FromDays(<number of days in integer>)) -  Clears files older than specified days.

    For your convenience, I have also attached screenshots of implementation of both methods.

    Secondly, printing feature in SharePoint plugin is implemented with the help of jQuery. The API does not provide specific method to print the files. However, it provides ViewerHandler.GetFile method with print settings which is implemented in the plugin for printing purpose. You can check GetPdfPrintUrl method in default.aspx.cs and GetFile.aspx.cs in the SharePoint plugin's source code to understand its working. As the plugin is open sourced, you can also modify/enhance the functionality according to your own requirements. 

    If you have any further questions, please let us know.

    Warm Regards 

    Usman Aziz

    Support Developer
    GroupDocs Support Team
    http://groupdocs.com
    Your Document Collaboration APIs
     
  •  08-16-2016, 11:48 AM 14463 in reply to 13822

    Re: Issue in GroupDocs viewer - Sharepoint project

    Attachment: Present (inaccessible)
    Hi Usman,

    Thanks for your good and constant support.

    I am facing a new issue in GroupDocs Viewer.

    Using your online app "http://apps.groupdocs.com/document-viewer" when tried to view corrupted excel file it shows error popup having message "The file is corrupted". I have attached the screen shot for the same.

    But when I view the same file in sample MVC and Sharepoint project it is not showing any kind of error popup. 

    Thanks,
    Jayesh
     
  •  08-16-2016, 5:23 PM 14468 in reply to 14463

    Re: Issue in GroupDocs viewer - Sharepoint project

    Hi Jayesh,

    Thanks for sharing your issue with us.

    Unfortunately, this feature is not yet implemented in sample front end applications. However, I am logging your request in GitHub issues for the implementation of this feature. The concerned team will look into it and in case of any update, we will inform you here. You can also follow https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/issues/71 for further updates.

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

    Warm Regards 

    Usman Aziz

    Support Developer
    GroupDocs Support Team
    http://groupdocs.com
    Your Document Collaboration APIs
     
  •  09-09-2016, 9:48 AM 14766 in reply to 14463

    Re: Issue in GroupDocs viewer - Sharepoint project

    Hi Jayesh,

    Your requested feature, logged in GitHub issues as https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET/issues/71 has been implemented. Please download latest source code and share your feedback.

    Warm Regards 

    Usman Aziz

    Support Developer
    GroupDocs Support Team
    http://groupdocs.com
    Your Document Collaboration APIs
     
  •  11-16-2016, 7:58 AM 15713 in reply to 14766

    Re: Issue in GroupDocs viewer - Sharepoint project

    Attachment: Present (inaccessible)
    Hi Usman,

    I have integrated GroupDocs-Viewer in SharePoint custom webpart solution. I am facing some issue realted to ClearCache functionality. Attached are the screen shots for the same.

    I have passed "TimeSpan.FromDays(1)" as parameter in ClearCache method, still older files are not deleted when the method is called. It is not throwing any kind of error. Although this functionlity is working perectly when running MVC sample project.

    Thanks,
    Jayesh
     
  •  11-16-2016, 1:15 PM 15719 in reply to 15713

    Re: Issue in GroupDocs viewer - Sharepoint project

    Hi Jayesh,

    Thanks for providing the details of the issue.

    We investigated your issue and successfully reproduced it in SharePoint WebPart solution. The issue has been notified to the concerned team. As soon as we get any updates on it, we will notify your here.

    Have a nice day.
    Warm Regards

    Usman Aziz

    Support Developer
    GroupDocs Support Team
    http://groupdocs.com
    Your Document Collaboration APIs
     
Page 1 of 2 (20 items)   1 2 Next >
View as RSS news feed in XML