I don't know if this might sound too simple, but a number of lines are commented out and therefore won't execute, I don't know if it's just the transcription you copied here or your code is like this. 'Response.BinaryWrite(lynxServer.responseBody) 'Response.Flush() 'Response.End() for example, I am more a C# programmer and not too familiar with VB.net but this lines of code would not be compiled in C#, they would simply be considered comments.