More in this section
Forums / General Discussions / Library Manager - Download file

Library Manager - Download file

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Anu
    Anu avatar
    72 posts
    17 Jun 2010
    12 May 2011
    Link to this post
    My requirement is -
    i want a module where in admin can upload excel files.
    and from website end user can download that excel file.
    we are using sitefinity 4.0.
    How should we go to achieve this?
    currently i am trying the download code by using library manager
    but not able to do this.
    i am getting the error 'object reference not set to instance of an object' for the statement



    LibraryManager libraryManager = new LibraryManager();


    i have used the same in sitefinity 3.7. but facing error in 4.0
    i have added the same dll - telerik.library from my exisiting 3.7 project

    Need help....
  2. Teodor
    Teodor avatar
    52 posts
    24 Sep 2012
    16 May 2011
    Link to this post
    Hello Anu,

           I do not believe that you could use your previous library manager from 3.7. I recommend  you to use the library manager from Sitefinity 4.0. You could get the manager  in the code like this :


    The uploading of the files could be done trough the sitefinity backend also . Then you could create a page and put the Download List control and select the proper library  from there to make the files available for public users.

    All the best,
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered