Pomster
Pomster

Reputation: 15207

Can't call a service reference?

I have a service which i have connected too but can't call it from my controller.

I right clicked on my project and then clicked add service reference, i pasted in my URL and clicked go. It found the reference and when i clicked on it a whole list of action popped up on the right. I gave the service a name called Stormzo.

Following the support document i should be able to Instantiate the service as follows

Stormzo.RegistryServiceClient stormzoService = new Stormzo.RegistryServiceClient();

How ever the Stormzo is underlined in red?

When i hover over it, it says:

could not find namespace or missing assembly reference.

Am i missing a using statement? Or how can i make the service visible to the code controller?

Upvotes: 1

Views: 2203

Answers (1)

Yuval Itzchakov
Yuval Itzchakov

Reputation: 149646

Right click your service reference and go to:

Configure service reference -> Advanced -> Untick the Reuse types in referenced assemblies

Upvotes: 4

Related Questions