wcf

WCF (net.tcp) service: Works on all but one system

I've written created a WCF service inside a Windows service, and for some reason I can't figure out, I deployed the service on a bunch of systems (all nearly identical in OS and configuration), and it works on all but one server. The configuration for all deployments is identical except for the service's base address. When the service ...

deploying wcf service application as a precompiled app

I have a wcf service application that has some application startup code in the app_code folder of the project. When i publish this project to my website, it deploys it with source code and app_code folder. Is there a way to precompile the wcf app ( like an asp.net app), that includes all the dependencies and compiled code ? i checked t...

WCF binding translation

1) I have an external customer who will be hitting a web service. This external webservice will be using SSL and signed with a certificate. No prob here... This uses wsHttpBinding. 2) I have an internal service that does all the actual work. It uses SSL without any client credentials. In other words, we trust our front box. This u...

I get a ServiceActivationException on one of my services while sometimes it works just fine

I have a service that retrieves data from a SQL server using Entity Framework. Most of the time it works fine but sometimes it fails with a The requested service XXXXXXXXXXXXXXXXXXX could be activated." error. To be able to see whats wrong, I have enabled tracing and checked with svctraceviewer. And found out that there is...

WCF Restful services in VS 2010?

Hi There, Does anyone know of a good screencast, walkthrough or tutorial for creating WCF Restful services in VS 2010? I found the starter kit, but this appears to be for .net 3.5 / VS 2008.?? Then i found via the extension gallery a WCF Restful services template for VS 2010... THis appears to be what i need, but i have no idea of whe...

MultipleBaseAddressBasicHttpBindingServiceHostFactory or WebScriptServiceHostFactory for SharePoint 2010 Web Service?

When it comes to creating a new Service running on SharePoint 2010, people seem to usually use the Sharepoint MultipleBaseAddressBasicHttpBindingServiceHostFactory. However, I would like to use the standard .net/WCF WebScriptServiceHostFactory instead because this gives me JavaScript code by calling the Service URL with /js. My Service...

WCF Client and Windows Integrated Authentication

Hi Everyone: We found a problem while accessing the Web service from our ASP.Net MVC project hosted in IIS 7(windows 2008), we are using this bindings.config <basicHttpBinding> <binding name="BasicServiceHttpBinding"> <security mode="TransportCredentialOnly"> <transport clientCredentialType="Windows"/> ...

Simulate Concurrent WCF Client Calls And Measure Response Time

I am trying to simulate X number of concurrent requests for a WCF Service and measure the response time for each request. I want to have all the requests hit the Service at more or less the same time. As the first step I spawned X number of Threads, using the Thread class, and have invoked the Start method. To synchronize all the reque...

WCF duplex communication

I need to re-write an existing client-server application. The existing application communicate using socket, I have to convert it into WCF. At server side I need to Monitor connected clients Validate client request Broadcast live data (comming from diff source). Listen to client and respond to it At client end I need to Receive...

Silverlight Game Logic on client side or on server side?

I am running into some problems right now. I am developing a card game (Top Trumps) which is played by two players. I wonder how to best setup the architecture. Right now almost all of the game logic is calculated on client side. The game state is saved in a database table. The database is updated every second. But since two players a...

WCF data object receive progress

Hi, I'm looking for a way to retrieve a collection of DTOs from my WCF data service in a way that will allow me to be informed every time a whole DTO from the collection has finished downloading, also I want to be able to read it of course. Means, if I want to get a collection of users, every time a user from the collection is download...

Soap body is not encrypted when X509 security implmented on WCF service

I implemeted a WCF service and a client application for one of projects for my employer and currently facing a serious problem due to the soap body element. The issue is the soap body is not getting encrypted and only the header is encrypted. I am grateful to anyone who can help to resolve this issue. I can send the code for this if anyo...

c# ChannelFactory: How to reconnect/reopen connection after FaultException|TimeoutException?

Hello, I am using a ChannelFactory with netTcpBinding. Sometimes I get exceptions and after these I can not use the channel anymore because it is in faulted state. What should I do to reestablish the connection? Should I call abort(), then close/open. Or Close(), then open(), or should I just use a new object like: myPublicChannel = t...

Marking type with Auto properties produces generated fields as members on the WCF client proxy code

I have a DTO type declared as follows: [Serializable] public class PersonDTO { public int Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } } I have a WCF service whose operation contract reads as follows: [OperationContract] public PersonDTO GetPerson(int id); The problem that ...

Strange issue while hosting WCF in Windows Server 2003 standard edition

Hi All, I have hosted WCF in Windows Server 2003 standard edition. If there is not much process while fetching data from service it returns expected result, but if there is much processing involved, it comes with 504 error(The server didn't return a response for this request). I am using custom binding which is as follows to return JS...

Triggering MaxClockSkew when accessing WCF service

I have a WCF service which has one end point with configuration of a MaxClockSkew set to 23:59:59 but with no security behavior, and another end point with the same configuration of MaxClockSkew and security configuration. The problem is when accessing the non secure endpoint no exception is thrown and when accessing the secure endpoint ...

Exposing only a few service methods across DMZ

I have an internal web service that exposes what rate to pay for a given task. Currently there is a single service that exposes: Currencies - Add, Edit, Delete, SelectById Countries - Add, Edit, Delete, SelectById Tasks - Add, Edit, Delete, SelectById Rates - Add, Edit, Delete, SelectAll, SelectById - (*1) Search Reference data (Curren...

WCF REST Service Template 40 Max Size/Objects

Hello, I have recently developed a web service using the WCF REST Service Template 40. Nothing much to the service, simply queries a db table and returns the results. However, queries that should return a large amount of records return nothing, just a blank page. I know this is probably because the max size is being exceeded, but I c...

Are WCF Data Services (Astoria) a good choice for a Line of Business application?

One of our architects is building a new reference architecture for the next generation of one of our company's applications. The prototype is an ASP.NET MVC 2 web app that sits on top of WCF Data Services (Astoria) and uses EntityFramework 4 for data access and object mapping. The prototype application manages roles of users, so the se...

unable to fetch data from link table using WCF

I have a aspnet_Users table with UserD as primary key and master_actor table with ActorID as primary key and have no common key.. The two tables are linked together using a link table master_actorlink table with UserID and ActorID columns.. I want to fetch the ActorID of master_actorlink table using the UserID via WCF services.. I'm...