HttpClient client = new HttpClient(new HttpClientHandler() { UseDefaultCredentials = true });
client.BaseAddress = new Uri(ConfigurationManager.AppSettings["SrvcBaseAddr"]);
in the web.config:
<add key="SrvcBaseAddr" value="http://localhost:61788/" />
Is port 61788 special?
If I changed it to other values, such as 61988. When I run the web application, it still use 61788.
??? what's problem.
The company can't input Chinese, so I use english.
client.BaseAddress = new Uri(ConfigurationManager.AppSettings["SrvcBaseAddr"]);
in the web.config:
<add key="SrvcBaseAddr" value="http://localhost:61788/" />
Is port 61788 special?
If I changed it to other values, such as 61988. When I run the web application, it still use 61788.
??? what's problem.
The company can't input Chinese, so I use english.