Questions tagged [wcfserviceclient]

83 questions
5
votes
2 answers

Adding WCF Service References to multiple projects

A couple of very basic questions. I am new to WCF and I am building an application which has a Service Project, A Web Application project and a few Class library projects which I use for Business logic, etc. I am hosting the WCF locally on my IIS…
Kalyan
  • 106
  • 2
  • 7
5
votes
1 answer

WCF set Endpoint and Binding dynamically in code

Yes, I've read the other questions on SO, MSDN, and other sites, but I found no answers as clear as I can understand. I need to set my Silverlight application's WCF references relative to the site that it's loaded from, but I can't get it to work.…
5
votes
2 answers

WcfSVCHost encountered a critical error and must exit. This may be caused by invalid configuration file

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at…
Leo
  • 1,517
  • 2
  • 24
  • 39
4
votes
1 answer

WCF: Can't call own WCF service

I have my WCF service, I've created reference to it from MSTest project. Here is example how I am calling service methods: IEnrollmentService serviceClient = ChannelFactory .CreateChannel(new BasicHttpBinding(), …
Budda
  • 16,990
  • 33
  • 113
  • 197
4
votes
6 answers

Access the current InstanceContext in a WCF UsernamePasswordValidator

I have a WCF service that is using a custom UsernamePasswordValidator. The validator needs to access my entity framework context. I would like to create one ObjectContext for the entire service call and then destroy/dispose it at the end of the…
Robert Fall
  • 851
  • 10
  • 21
3
votes
1 answer

WCF Client freezes when calling method from Service

I have this strange problem where my client will hang when it calls a method from my WCF Service. Now the real strange thing is that this does not happen when the Client is a Console Application. It does happen when the client is a WinForm or WPF…
Ryan R
  • 7,902
  • 14
  • 74
  • 107
3
votes
3 answers

How to enable reliability for one-way methods?

The What You Need To Know About One-Way Calls, Callbacks, And Events article tells: The fact that the client doesn't care about the result of the invocation does not mean the client doesn't care if the invocation took place at all. In general, you…
Budda
  • 16,990
  • 33
  • 113
  • 197
3
votes
1 answer

Needed help in wcf service consuming

I have this WCF service hosted on IIS. When I try to consume it in my client project using below code I get following exception "An error occurred while sending the request" LaunchService.LaunchServiceClient launchServiceClient = new…
tanvi
  • 31
  • 1
  • 4
2
votes
1 answer

WCF Service with ASP.Net

I am new to WCF. I wrote the following service below, which runs fine. I then configured IIS, and ran the service via the browser http://localhost/WCF_Entity_SVC/ProductService.svc, which runs fine. I created a ASP.Net webpage and added a service…
Shlomo Katz
  • 87
  • 1
  • 8
2
votes
1 answer

Beginner Windows Service / WCF and front end GUI implementation Question

I am trying to figure out the best way to approach this design... Here is some background of what I'm trying to do: I have a simple digital I/O controller that sends data to my computer via Ethernet. I have a program that can receive this data over…
Ryan R
  • 7,902
  • 14
  • 74
  • 107
2
votes
0 answers

WCF service time out

Here is the interface for my WCF service: [ServiceContract] public interface IMyService { [OperationContract] void DoWork(); [OperationContract] void SendData(); [OperationContract] void GetData(); [OperationContract] …
Usha phulwani
  • 154
  • 1
  • 18
2
votes
2 answers

WCF, Sending an unknown type to a WCF service

Consider this scenario that two WCF clients connect to one WCF service(server), this service will receive an object from one client and send it to the other one through some operation contract and client callbacks, both clients have the type for…
Tom
  • 53
  • 7
2
votes
1 answer

Publish DataAnnotation attributes in a WCF service, and regenerate them at the consumer proxy classes?

I have a WCF that exposes various classes. I applied DataAnnotation attributes on some of the properties. I want them to be generated in the consumer project as well, is there a way to do this?
Shimmy Weitzhandler
  • 92,920
  • 119
  • 388
  • 596
2
votes
2 answers

WCF Certificate Authentication not working

I have built a WCF helloworld client and server. I want to use certificate authentication between them. The error I get is "The caller was not authenticated by the service." I have created two certificates using makecert.exe. The certificate on the…
user2837961
  • 1,217
  • 2
  • 19
  • 49
2
votes
1 answer

WCF Client - only first 255 bytes of stream returned from WCF service contain values

I have been tasked to look after an ASP.Net WebForms application that communicates with a WCF service hosted by a Windows service. The binding used for the service is netTcpBinding. The service exposes methods to Upload and Download ‘files’. The…
Grant Sutcliffe
  • 1,037
  • 1
  • 13
  • 20
1
2 3 4 5 6