If .aspx does not work, then try writing an .ashx handler. Add a new item to your Web application — “Generic Handler”, Handler1.ashx.
The simplest implementation is:
Public Class Handler1
Implements System.Web.IHttpHandler
Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim c1 = context.Request.Files.Count
Dim c2 = context.Request.Files.AllKeys.Count
context.Request.Files(0).SaveAs("C:\Temp\ReceivedFile.txt")
context.Response.ContentType = "text/plain"
context.Response.Write("Hello World!")
End Sub
ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
Get
Return False
End Get
End Property
End Class
Instead of Beep and Debug.Print you can put breakpoints and investigate the variables using Debugger.
Also adjust the client code:
responseArray = myWebClient.UploadFile(ServerURL & "/Handler1.ashx", Filename)