[英]Value cannot be null. Parameter name: uri
当我尝试调用Adobe Livecyle Soap服务时出现以下错误:
值不能为空。 参数名称:uri
奇怪的是我没有任何名为“uri”的参数。 我无法调试此错误,因为服务甚至无法启动。 错误消息是我所有的。
这是代码,我传递参数:
BasicHttpBinding binding =
new BasicHttpBinding(BasicHttpSecurityMode.Transport);
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Basic;
LetterService.LETTER_APPLICATIONS_Client client =
new LetterService.LETTER_APPLICATIONS_Client(
binding,
new EndpointAddress(
System.Configuration.ConfigurationManager.AppSettings["URL"]));
EndpointAddress()
的参数名为URI
(您可以将光标放在(
,然后按Ctrl + Shift + Space
以查看参数列表)之后。
您可以通过替换来验证这是否是问题:
new EndpointAddress(
System.Configuration.ConfigurationManager.AppSettings["URL"]));
..具有如下内容:
new EndpointAddress("http://your.service.uri/");
如果可行,您知道您的错误与配置相关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.