[英]Value cannot be null. Parameter name: uri
I get the following error when I am trying to invoke my Adobe Livecyle Soap service: 当我尝试调用Adobe Livecyle Soap服务时出现以下错误:
Value cannot be null. 值不能为空。 Parameter name: uri 参数名称:uri
The strange thing is that I don't have any parameter named "uri". 奇怪的是我没有任何名为“uri”的参数。 I can't debug this error since the service can't even start. 我无法调试此错误,因为服务甚至无法启动。 The error message is all I've got. 错误消息是我所有的。
Here is the code, that I pass the parameter: 这是代码,我传递参数:
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"]));
The parameter to EndpointAddress()
is named URI
(You can place your cursor just after the (
, and press Ctrl + Shift + Space
to see the parameter list). EndpointAddress()
的参数名为URI
(您可以将光标放在(
,然后按Ctrl + Shift + Space
以查看参数列表)之后。
You could verify that this is the problem by replacing: 您可以通过替换来验证这是否是问题:
new EndpointAddress(
System.Configuration.ConfigurationManager.AppSettings["URL"]));
..With something like the following: ..具有如下内容:
new EndpointAddress("http://your.service.uri/");
If that works, you know your error is config-related. 如果可行,您知道您的错误与配置相关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.