N
Nathan
Have a strange problem.
Creating a windows service running under the Local Sytem account.
I have a Webclient that downloads a file from the internet.
The code works fine if executed from a windows form but when i execute it in
a windows service i get the following error:
The proxy name could not be resolved: 'macc4'
'macc4' is a proxy server i have used in IE in the past at work, but why in
the world is the webclient trying to use this proxy server???
Can anyone shed some light on what might be going on?
Dim wc As New WebClient
Dim myCredentials As New NetworkCredential(http_user, http_passwd)
wc.Credentials = myCredentials
If File.Exists(local_dir & file_name) Then File.Delete(local_dir &
file_name)
wc.DownloadFile(URL & file_name, local_dir & file_name)
Creating a windows service running under the Local Sytem account.
I have a Webclient that downloads a file from the internet.
The code works fine if executed from a windows form but when i execute it in
a windows service i get the following error:
The proxy name could not be resolved: 'macc4'
'macc4' is a proxy server i have used in IE in the past at work, but why in
the world is the webclient trying to use this proxy server???
Can anyone shed some light on what might be going on?
Dim wc As New WebClient
Dim myCredentials As New NetworkCredential(http_user, http_passwd)
wc.Credentials = myCredentials
If File.Exists(local_dir & file_name) Then File.Delete(local_dir &
file_name)
wc.DownloadFile(URL & file_name, local_dir & file_name)