G
Guest
Hello everybody,
I am using the the below mentioned packages for sending the mail, but when i
assign the read file to a byte array " barr = wc.DownloadData(url)"
I get an error "The remote server returned an error: (401) Unauthorized."
,so can nayone of you tell me waht could be the reason for the error and how
it can be rectified.
*************************
code for your perusal
Imports System.Web.Mail
Imports System.Net
Dim wc As New WebClient
Dim url As String = String.Empty
url =
"http://localhost/Tradenet/booking_q...7782cURRENCYy=USD&id=1353381&StaffID=TMK00392"
Dim barr() As Byte
barr = wc.DownloadData(url)
"The remote server returned an error: (401) Unauthorized."
****************************
your expert advise would be of great help.
rgds
Shiju
I am using the the below mentioned packages for sending the mail, but when i
assign the read file to a byte array " barr = wc.DownloadData(url)"
I get an error "The remote server returned an error: (401) Unauthorized."
,so can nayone of you tell me waht could be the reason for the error and how
it can be rectified.
*************************
code for your perusal
Imports System.Web.Mail
Imports System.Net
Dim wc As New WebClient
Dim url As String = String.Empty
url =
"http://localhost/Tradenet/booking_q...7782cURRENCYy=USD&id=1353381&StaffID=TMK00392"
Dim barr() As Byte
barr = wc.DownloadData(url)
"The remote server returned an error: (401) Unauthorized."
****************************
your expert advise would be of great help.
rgds
Shiju