The following code worked fine with Wikipedia several months ago. It now throws a 404 exception during the DownloadImage call. I have tried several things to fix it but with no success. Could anyone point me in the right direction?
' Load the basic game information
Dim p As New Page(wikiSite, pageName)
' Now save the screenshots into the temp directory
For Each tempFile As String In Directory.GetFiles(currentState.TempDirectory)
Dim gameImages() As String = p.GetImagesEx(True, True)
screenshotIndex = 0
boxArtIndex = 0
For I As Integer = 0 To gameImages.Length - 1
Dim imagePage As New Page(wikiSite, gameImages(I))
Dim screenshotPath As String = currentState.TempDirectory & "\" & I.ToString & ".png"
' Continue if a particular image can't be found