Blog from Saravanan Arumugam

Let us talk about Technologies

Generate asynchronous operations is checked and disabled in Service Reference Dialog

I have observed that from a sliver light client, Visual studio doesn’t allow creation of Synchronous WCF services.

When I tried to use the service reference dialog from a Silver light client, I was shown the following


Here we can see Generate asynchronous operations is grayed out and always checked.

This appeared to be that Visual Studio always recommends the use of Asynchronous operations.

I further tried by creating the synchronous operations through SvcUtil.exe

C:\Users\Saravanan\Projects>svcutil http://localhost:54927/GreetingService.svc?
wsdl /out:GreetingServiceProxy.cs /l:cs /config:app.config


But the runtime threw the following exception.

The contract ‘IGreetingService’ contains synchronous operations, which are not supported in Silverlight. Split the operations into "Begin" and "End" parts and set the AsyncPattern property on the OperationContractAttribute to ‘true’. Note that you do not have to make the same change on the server.


So it is evident that Silverlight supports only asynchronous web service calls.

Refer to How to: Access a Service from Silverlight and Why does my service reference only generate asynchronous methods? for more detail.


2 responses to “Generate asynchronous operations is checked and disabled in Service Reference Dialog

  1. Buy Tramadol April 6, 2011 at 2:57 am

    Great post. Just a heads up – I am running Ubuntu with the beta of Firefox and the navigation of your blog is kind of broken for me.

    • Saravanan Arumugam April 7, 2011 at 8:57 am

      Thank you. Let me have a look and fix it if possible.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: