wcf

Multiple WCF Projects vs Single Project in Solution

Currently we have 12 WCF projects in our solution. Each project is essentially it's own endpoint. For example the "Order" WCF project is the Order.svc endpoint. These 12 endpoints are exposed by a single WebHost project. The WebHost project has 12 .svc files pointing to each corresponding assembly/namespace. My question revolves aro...

Hold TcpClient Connection with WCF

Hallo I need a Tcp connection to a server alive in backgrond and applications will send data with this connection.I searched around and found WCF singleton is apporiate for this task here is a code snippet that i use below my question is that the good way and any problem can be with this? string hostAddress = string.Empty; ...

WCF communication with a Silverlight application

I have previously built WPF apps that host their own WCF service running on a custom port. Which is a great simple way for other apps to send messages between each other. I have recently inherited a Silverlight 4 app from a client and they would like a way to send messages to it. I figured that WCF would be a simple way, but it is not p...

How to auto process emails when they arrive?

i have the current scenario: my app generates for each user an valid system email address of form lets say: [email protected] when an user has a problem/question he can send an email from any address to that predefined system email address the app should receive the emails sent by the user and process them(check for spam, insert in db) ...

WCF Service Authentication mode="Forms", how to host and use it in just one Web project?

Hi, our customer need us to host/consume WCF in one project, I'm new to WCF now, It's a B/S project, IIS directory named [Project1] in the project, web.config - Authentication mode="Forms" <authentication mode="Forms"> <forms name=".cspaccess" path="/" loginUrl="/Core/Login.aspx" protection="All" timeout="15"></forms> </authenti...

WCF DataService Data Retrieve Issue

I'm using .net 4.0 (Visual Studio 2008). We are using WCF DataService, through this we are able to update the data. While calling UpdateObject(..) method its working fine and its been updated to database also( I manually checked the database). But while retrieving the data back, its not giving updated value?????? Example : _cont...

"Thread was being aborted" in WCF Service Call

In my program there is a aspx page that contains wcf client, that so on calls wcf service located on same server. I`v get this exception when my wcf client calls wcf service hosted in IIS on production server. Ex. msg: Thread was being aborted. Ex stack: at System.Net.UnsafeNclNativeMethods.OSSOCK.recv(IntPtr socketHandle, Byte*...

Best practice for exposing multiple client-specific endpoints in a WCF service?

Moving forward with re-designing a web service architecture using WCF, our team has been discussing how we want to expose the endpoints. Example: I have a standard endpoint that all users could use with the proper token, but I also have some number of endpoints that will instead use certificate security. All endpoints will ultimately use...

Why do I receive a "The .Net Framing mode being used is not supported by" error upon consuming WCF service?

I am trying to consume one of my WCF services using a net.tcp binding and I am receiving the following error: "The .Net Framing mode being used is not supported by 'net.tcp://myWCFService:8050/MyService'." The research I have done states this is caused by having an improper "transfermode" in the binding configuration, but in my service...

Killing Two Birds with One Stone in RIA Services with Silverlight

Here's the issue: The database is highly normalized, and one particular query relies on the multiple relationships in the database. The query is designed to join all the tables, construct the entire object, and then return a list of those objects. In other words this particular query does a lot of work. Now, the query does only return...

Reason of this exception in WCF

Dear All, I am learning WCF and right now I am getting one exception while running the application: Exception: Could not find default endpoint element that references contract 'IService1' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because...

How can I set the port for an iis hosted wcf svc?

Hi All, I have a IIS hosted service http://localhost/someProject/services/myservice.svc . Is it possible to somehow make say http://locahost:9705 point to it? How do I set this up? It seems to be pretty straightforward with a Windows Service hosted WCF service, but I cannot figure how to accomplish this when using .svc files and IIS. In ...

exception when incoming message modified for a method with "not blank" Uri template

I get the following exception when i modify the incoming Message for a web service method with URItemplate which is not blank. System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.ServiceModel.Dispatcher.UriTemplateDispatchFormatter.DeserializeRequest(Message message, Object[] parameters) at System.Servi...

Self Tracking Entities vs POCO Entities

We are starting a new web based product in which we are planning to expose our business logic through WCF services. We will be using ASP.NET 4.0, C#, EF 4.0. In future we want to build iphone applications and WPF applications based on the services. I have been reading a lot about using POCO vs Self Tracking Entities (STE) and from my und...

Host a WCF service from within Apache server?

Is it possible to host a WCF Service in Apache? What are the requirements and how would it be done? ...

Enable basic HttpBinding without SSL in WCF

The idea here is that for my testing, before I commit to purchasing the SSL certificate, I want to enable the WCF service in non-ssl mode. I've done it in the past using this code, but for the life of me, cannot figure out how to translate it into the web.config file. If someone can put me in the right direction on how you would go abo...

Multiple concurrent WCF calls from single client to Service

I have a service that calls a service on another machine and the most number of concurrent connections I can get is 2. I have tried changing the throttling on the WCF Service Behaviour but to no effect. I have read that it is because of the HTTP limit of 2 concurrent connections from a client machine to a server. How do I overcome thi...

Have MTOM and Text message encoding in the same service

I have a WCF service, which expose multiple operation contracts. One contract is to upload a large file. So I want to use MTOM message encoding for that method and text encoding for other methods? How do I create a single service and use text and MTOM message encoding? ...

Silverlight WCF service timing out (even when passing one item)

I have a wcf service created that's being consumed by a silverlight application. We are using the service to get geographic data back: A point (consisting of an X and Y double) A shape represented as a List> Our one service method returns a collection of "Items" which contains a "Object ItemData" property. Depending on the data we ge...

What is contained in the App.config generated with 'add service reference'?

when adding a service reference an app.config is generated. What I'd like to know is, do the bindings, endpoints and everything else reflect the service, that I created the reference to? Do they specifically define that services bindings, security type,..etc, or is it simply a generic app.config? There seem to be a lot of settings.. ...