Reputation: 417
I am trying to connect with a couchbase instance hosted in Azure Kubernetis Cluster. My company network uses a corporate proxy to connect to external network(internet). So we have always configures system proxy in our machines. In Visual Studio when I execute the code in IISEXPRESS the connection call to couchbase timesout because the IISExpress is not using the system proxy I guess. This same issue was also happening for npm once but after I setup npm proxy everything works fine. Now I need a solution for iisexpress. Any help is appreciated. Thanks in advance.
Upvotes: 1
Views: 3718
Reputation: 28247
As far as I know, you could add proxy setting in your visual studio application's web.config file to use proxy to access the another server. If you set this setting the IIS express will use the proxy setting.
Details, you could refer to this document and example codes:
<configuration>
<system.net>
<defaultProxy>
<proxy
usesystemdefault="true"
proxyaddress="http://192.168.1.10:3128"
bypassonlocal="true"
/>
</defaultProxy>
</system.net>
</configuration>
Upvotes: 2