Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在配置文件中指定 WSE3 代理而不是代码。我想出了如何让它在代码中工作,如下所示:
valservice.Proxy = new System.Net.WebProxy("http://10.192.xx.xx:8080", true);
详细信息:我有一个调用 WSE3 外部供应商 Web 服务的 WCF 包装器 Web 服务。WSE3 代码在从表单调用时工作正常,但在 IIS 下作为另一个 Web 服务运行时却不行。
有什么理由不能为此使用普通的 appSettings 吗?
请参阅此处的示例。