Views: 9.4K
Replies: 2
Archived
|
ActionServiceClient in MVC projectWhere 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) Thanks. William Doman, Aug 19, 2010
|
|
Reply 1Dan, you are right. Somehow I added it as a Web Reference instead of a Service Reference.
=( Doh! William Doman, Aug 24, 2010
|
|
Reply 2William:
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
|