wcf

WCF for mobile: what's the difference

We will write WCF service for our windows mobile client. Although we have the experience in WCF development, we know there are some difference when developing wcf for mobile. Can you tell me where I can find the difference. Thank you. ...

WCF security: looking for a very specific example

Hi there, I'm having a problem where i want to get the users windows login information sent to IIS then from there sent to a WCF service hosted in a console application and then that service uses the credentials to go to a database and retrieve results. i'm looking for an example on the web that does EXACTLY this but for the life of me...

Why does it matter which order settings are in app.config

I had a problem with WCF test, and the problem was solved when I moved to the top of system.servicemodel. My question is, why does this matter? Doesn't .NET read the XML by the field names? <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="MyServiceTypeBehaviors"> <serviceMetadata httpGetEnabled="true" ...

Transactions scope in WCF

I need to make call to a WCF service in a Transaction scope. I have never tried transactions in WCF serivce. Does anyone have experience in similar requirement? ...

WCF Interop with WSE2.0

I'm attempting, with great difficulty, to have an WCF client communicate with a WSE 2.0. The wse service requires UserName token for authentication and it would appear that this is not possible over an unsecured channel. I have configured the following custom bindings: <customBinding> <binding name="wse2Binding"> <te...

OpenSource project with lots of WCF?

Is there any big open source application which heavily uses WCF or old asmx services? I discovered just MS samples: Stock Trader and CardSpace, then some: Chats on Codeplex and Multiplayer quiz. ...

WCF Operation Logging

Hi, I'd like to log the performance of our WCF operations, in particular if an operation takes longer to execute than a given threshold it creates a warning in a log. We have started by implementing IDispatchMessageInspector which allows us to time each operation and perform the logging. However, I'd like to be able to append the user...

How to restrict access to a WCF service with a shared key

I have a few services that are being consumed by clients within a secure zone. I've been asked to protect these services typically against development clients mistakenly connecting to the wrong service. The idea was to pre-shared key (like a guid) which is set in the config for both the client and the service host. Whenever The client t...

What is the difference between web service and remoting?

Hi, I know web service and have some knowledge on remoting. Both concepts invoke methods on the client machine so where lies the difference ?? Through remoting we can also execute the method on the remote machine and the same functionality can be achieved through web service too.. Please excuse me if it is the obvious question.. ...

Creating a WCF service object with InstanceContext object

I have a WCF service with single instance. I have consume it in silverlight and windows forms also. It's working fine in silverlight application but in windows it not create an service object. it tell me 3 parameters in service method. like InstanceContext, EndPoint, Binding the 2nd and 3rd argument I have passed but 1st argument what...

FileStream Access Denied in ASP hosted web service

Hello I have the following //get the data as a string. using (FileStream fs = File.Open(location, FileMode.Open)) using (StreamReader reader = new StreamReader(fs)) { rawData = reader.ReadToEnd(); } in the web config of the WCF host <authentication mode="Windows"/> <identity impersonate ="true"/> however i get this error ...

WCF / Silverlight Call Back to Server Fails in IIS

Using Silverlight 3, Windows XP, IIS 5.1, I've written a small app which uses the channel method of calling the server rather than the 'add service reference' as per this MSFT article. The application opens and the call to the server work when running it on the development computer in VS 2008 using the address localhost plus the port nu...

Detecting Client Death in WCF Duplex Contracts.

I'm trying to build a SOA where clients can perform long running queries on the server and the server responds using a callback. I'd like to be able to detect if the client disconnects (through user initiated shutdown, unhandled exception or loss of network connectivity) so that the server can choose to cancel the expensive request. I...

WCF Identity NTLM Kerberos

I have read numerous posts and articles about the element in client endpoints on a WCF client but I am still a little confused. I have a client which gets SSPI errors when attempting to communicate with a net tcp WCF service. However, when I add the following into the configuration it works fine <identity> <servicePrincipalName /> <...

The Address property on ChannelFactory.Endpoint was null. The ChannelFactory's Endpoint must have a valid Address specified.

Hi. I am getting the following error and I am not sure what I am doing wrong. Does anybody see anything obvious? Below are my project's Web.config and my WCF class library's App.config The Address property on ChannelFactory.Endpoint was null. The ChannelFactory's Endpoint must have a valid Address specified. APP.CONFIG ON SER...

WCF service behind login-enabled web app

The setup: ASP.Net website with login required before accessing any directory of the website ` <authorization> <deny users="?"/> <allow users="*"/> </authorization> ` the website is also a host for WCF service which is used by external applications to bypass the firewall (service isn't used by the website at all) externa...

WCF Relocation of DataContracts

This is a fully functional WCF Hello World program. I.e. I am able to run this program without any Exception. using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.ServiceModel; using System.Text; namespace DataContractsNamespace { [DataContract] public class Account...

How to Create a WCF Rest Endpoint for Uploading Large Files to ASP.NET MVC

Can WCF be used to create an endpoint for uploading large files to a website via an ASP.NET MVC controller method, with a jQuery progress bar in the browser being updated with Ajax or Json? How would it be done? Are code samples available? ...

IQueryable Count method takes longer to execute.

With a WCF built on top of a DB containing around 200 tables and Entity Framework, it takes lot of time (around 2 mins) to perform login the first time after building the WCF. Stepping into the code revealed the IQueryable.Count method to be the culprit. This happens only the first time after building the WCF code. Consecutive executio...

Achieving AES-256 Channel Encryption with the .NET Compact Framework

Hi There, I am working on a business application where the clients are Windows Mobile 6.1 Professional devices. The server is a Java enterprise application. The industry working group recommends AES-256 encryption for client/server communications. This is necessary to gain certification. The encryption doesn't necessarily need to be ch...