Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Value cannot be null. Parameter name: uri

I get the following error when I am trying to invoke my Adobe Livecyle Soap service:

Value cannot be null. Parameter name: uri

The strange thing is that I don't have any parameter named "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"]));
like image 536
gizemdemirel Avatar asked Apr 04 '13 07:04

gizemdemirel


1 Answers

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).

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.

like image 126
Kjartan Avatar answered Oct 13 '22 00:10

Kjartan