无法获得内部内容错误

时间:2014-04-05 13:02:24

标签: vb.net iis

我正在将一个网站从我的一个客户端迁移到一个客户端的托管服务器。

除了网站的媒体库部分外,其他一切工作正常。在尝试打开图库页面时,我收到了错误消息:

无法获取ulGallerySlides的内部内容,因为内容不是文字。

我更多的是技术人员,而不是程序员,所以我有点难以理解导致这种情况的原因以及如何解决这个问题。它在登台服务器上运行良好。

登台服务器是我完全控制的IIS 7服务器,新服务器托管在IIS 8上的ISP上,我几乎无法控制它(只通过WebSitePanel)

背后的代码是:

    Public Sub BuildGalleryView()
    Dim objDA As New clsDataAccess
    Dim dtResults As New DataTable
    Dim iCounter As Integer = 0

    Dim intGalleryID As Integer = CInt(Request.QueryString("g"))


    Dim strGalleryTitle As String = ""
    Dim strGalleryDescription As String = "Test Gallery Description"
    Dim strMediaTitle As String = "Test Media Title"
    Dim strMediaDescription As String = "Test Media Description"
    Dim strMediaURL As String = "./assets/images/placeholder.jpg"

    dtResults = objDA.ODSGetGalleryMedia(intGalleryID).Tables(0)

    'Set the gallery info first
    strGalleryTitle = dtResults(0)("Gallery_Title").ToString
    strGalleryDescription = dtResults(0)("Gallery_Description").ToString

    lblGalleryTitle.InnerText = strGalleryTitle.ToString
    lblGalleryDescription.InnerText = strGalleryDescription.ToString
    lblGalleryMainTitle.InnerText = strGalleryTitle.ToString

    If Not dtResults Is Nothing Then

        'Loop through all the images and build the slider"
        For i As Integer = 1 To dtResults.Rows.Count

            strMediaTitle = dtResults(iCounter)("Media_Title").ToString
            strMediaDescription = dtResults(iCounter)("Media_Description").ToString
            strMediaURL = "./assets/" & dtResults(iCounter)("Media_URL").ToString

            ulGallerySlides.InnerHtml = ulGallerySlides.InnerHtml & _
                "<li>" & _
                    "<img src='" & strMediaURL & "' align='Slider'/>" & _
                    "<div class='flex-caption'>" & _
                        "<h2>" & strMediaTitle & "</h2>" & _
                        "<p>" & strMediaDescription & "</p>" & _
                    "</div>" & _
                "</li>"
            iCounter = iCounter + 1
        Next
    End If
End Sub

我需要更改以解决此问题?

0 个答案:

没有答案