C
Craig Buchanan
I am able to connect Asp.Net v2 application to a remote .Net v2 webservice
by specifying the proxy settings in code:
Dim proxy As WebProxy = New WebProxy("proxy.company.com:80")
proxy.Credentials = CredentialCache.DefaultCredentials
dim service as New RemoteWebservice
service.Proxy = proxy
I thought it would make more sense to move this to the application's
web.config file. I created the following entry:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.net>
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://proxy.company.com"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>
...
</configuration>
Finally, I removed the proxy coding listed above.
When I run the application, i get an error that reads:
HTTP status 407: Proxy Authentication Required
Is there an issue w/ my web.config file, does there need to be additional
coding to get the proxy settings from the web.config file or it is something
else?
Thanks for the help.
Craig Buchanan
by specifying the proxy settings in code:
Dim proxy As WebProxy = New WebProxy("proxy.company.com:80")
proxy.Credentials = CredentialCache.DefaultCredentials
dim service as New RemoteWebservice
service.Proxy = proxy
I thought it would make more sense to move this to the application's
web.config file. I created the following entry:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.net>
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://proxy.company.com"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>
...
</configuration>
Finally, I removed the proxy coding listed above.
When I run the application, i get an error that reads:
HTTP status 407: Proxy Authentication Required
Is there an issue w/ my web.config file, does there need to be additional
coding to get the proxy settings from the web.config file or it is something
else?
Thanks for the help.
Craig Buchanan