Back to list
Views:   9.4K
Replies:  2
Archived

ActionServiceClient in MVC project

Where does ActionServiceClient come from in the MVC project? 

In the RepositoryBase class there is a getter/setter but the WCF service does not have anything with that name.  When I mouse over the text is says "ASPNETMVCApplication.ActionServiceReference.ActionServiceClient"  ActionServiceReference being the WCF service obviously.

When I mimic the code with my WCF service I don't have the property State, so the code below fails.
Code snippet follows: 

if (client.State == CommunicationState.Faulted)
What am I missing?
Thanks.

William Doman, Aug 19, 2010
Reply 1
Dan, you are right. Somehow I added it as a Web Reference instead of a Service Reference.

=(  Doh!
William Doman, Aug 24, 2010
Reply 2
William:

The ActionServiceClient is automatically generated when adding the Service References.
The Client derives from System.ServiceModel.ClientBase which is a .NET class and has the State property.

So, I am really not sure why you don't see State.
Could it have been a temporaray Intellisense problem?
Dan McMillan, Aug 23, 2010


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.3.0