Try Now
More in this section

Forums / Developing with Sitefinity / Library items not available

Library items not available

3 posts, 0 answered
  1. Andrei
    Andrei avatar
    553 posts
    27 Nov 2008
    11 Jun 2009
    Link to this post

    I have the latest Sitefinity 3.6.1936. I am uploading a pdf to the library and then I can not view it at all. or link to it in code. the error i get is:

    Server Error in '/Jersey IDS' Application.

    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /Jersey IDS/Libraries/Docs/Sitefinity_brochure_Q4-08.sflb.ashx

    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

    when i do it via the document selector and get the Library ID for the document: [Libraries]9b24d3b3-c5b8-43a8-90d4-32cfb4e0a4d2 still does not work.

    and use the code:


    Private Function GetUrl(ByVal value As String) As String



    ' if our value starts with ~/



    ' we return url



    If value.StartsWith("~/") Then



    Return Me.ResolveUrl(value)



    End If



    If value.StartsWith("[") Then



    Dim idx As Integer = value.IndexOf("]")



    'getting the provider [Libraries]



    Dim provider As String = value.Substring(1, idx - 1)



    Dim strId As String = value.Substring(idx + 1)



    Dim id As New Guid(strId)



    If ContentManager.Providers.ContainsKey(provider) Then



    Dim cnt As IContent = ContentManager.Providers(provider).GetContent(id)



    If cnt IsNot Nothing Then



    Return VirtualPathUtility.ToAbsolute(cnt.UrlWithExtension, Me.Context.Request.ApplicationPath)



    End If



    End If



    End If



    Return value.ToString()



    End Function


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    16 Jun 2017
    11 Jun 2009
    Link to this post
    Hi Andrei,

    Do you have the same problem with other items? A possible reason could be the blank space you have in Jersey IDS.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Andrei
    Andrei avatar
    553 posts
    27 Nov 2008
    11 Jun 2009
    Link to this post

    You are right. It was the space in between the two words in the Project name.
    Thank you

Register for webinar
3 posts, 0 answered