Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
Insert link/image from sharepoint (assetportalbrowser.aspx) broken when Xlstlistviewwebpart with webid from subsite

Answered Insert link/image from sharepoint (assetportalbrowser.aspx) broken when Xlstlistviewwebpart with webid from subsite

  • Thursday, July 26, 2012 5:51 AM
     
     

    I have a Xlstlistviewwebpart provisioned in a root site and mapped to a list in a subsite programmatically, once I provisioned this web part the assetportalbrowser.aspx start giving me "Value does not fall within the expected range", if I un-provision every thing starts working fine

    any idea how can I solve this issue, thanks in Advance



    • Edited by Ahmed Rabee Thursday, July 26, 2012 5:59 AM
    •  

All Replies

  • Friday, July 27, 2012 10:13 AM
    Moderator
     
     

    Hi Ahmed,

    Here is a similar link about your issue, please check it:
    http://social.technet.microsoft.com/Forums/sa/sharepoint2010programming/thread/84cf3ea5-821a-4cac-8a76-a006c6bdb70e
    The answer is:
    "If I added the same web part by first putting it in the web part library (as in your code tested), it worked. Only thing I've changed more is that I used a XsltListViewWebPart instead of a ListViewWebPart.
    It's not the ideal solution, because now I have a XsltListViewWebPart within another WebPart but as for now I can live with it."

    Thanks,
    Lhan Han


  • Thursday, August 02, 2012 7:48 AM
    Moderator
     
     
    Hi Ahmed,

    I had been updated my first reply, please checked whether it can help you.

    Thanks,
    Lhan Han



  • Friday, August 03, 2012 11:39 PM
     
     Answered

    options:

    • Add webpart using SPDesigner. 
    • Update to SP1 + Jun 2012 CU
    • Marked As Answer by Ahmed Rabee Monday, August 06, 2012 5:10 AM
    •  
  • Sunday, August 05, 2012 5:48 AM
     
     

    Thank you Lhan for your reply, I saw this link before, but it is  not working for me, I already provisioning XsltListViewWebPart by code but always getting same error

    Thanks again.