Hi
I get the following error when trying to load an RSS feed:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
My code works fine from my local host, error only occurs when i upload it to my dedicated server!
Here is the code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim signJ As String = DropDownList1.SelectedValue
If signJ <> "" Then
Try
Dim xmlDoc As XmlDocument = New XmlDocument
Dim xdsData As XmlDataSource = New XmlDataSource
Dim xpath_path As String = String.Empty
Dim RSS_Feed As String = String.Empty
xpath_path = "rss/channel/item[title='" & signJ & "']"
RSS_Feed = "http://feedurl.."
xmlDoc.Load(RSS_Feed)
xdsData.Data = xmlDoc.OuterXml
xdsData.XPath = xpath_path
rptData.DataSource = xdsData
rptData.DataBind()
Catch ex As Exception
Response.Write(ex.Message)
End Try
End If
End Sub
Error occurs on this line: xmlDoc.Load(RSS_Feed)
Real stuck on this one! cheers