I'm trying to evaluate whether to use classic Principal based authorization vs. IdentityModel authorization. It seems like Microsoft is recommending the latter these days, but I haven't seen enough in terms of maturity or support for it. Specifically, I really like the ability to set a PrincipalPermissionAttribute and allow the framework...
Hi,
I've an app using WCF (with WSHttpBinding), which is failing in computers where ESET NOD32 is installed.... There's a windows kernel service called ekrn.exe that starts using lots of CPU (near 100%) and makes the app fail after 1 minute. The error thrown by the application is:
"Client is unable to finish the security negotiation wit...
I get an 'An error occurred while processing this request' Exception when I try to Save some changes from my WPF-Application to a WCF-Data-Service. Loading all Records works fine, but saving them doesn't work.
Hope you can help.
public partial class MainWindow : Window
{
private DBEntities _dbEntities;
public MainWindow()
...
I'm trying to test validation that I've setup for my wcf service. What's the best way to do it?
[ServiceContract]
[ValidationBehavior]
public interface IXmlSchemaService
{
[OperationContract(Action = "SubmitSchema")]
[return: MessageParameter(Name = "SubmitSchemaReturn")]
[FaultContract(typeof(ValidationFault))]
JobData...
I have an MVC application that calls several different web services. While running load tests on the application, I noticed that performance (both throughput and response times) degraded quickly as the concurrent users increased. By process of elimination, I stripped everything out except for a single dummy call to the web service which ...
I'm trying to ask my OData service:
"Give me all the Products that do not have a Category"
with the Products and Category have a m2m relationship.
I've tried:
from p in Products
where p.Categories == null
select p
and
from p in Products
where !p.Categories.Any()
select p
and
from p in Products
where p.Categories.Count == 0...
In an effort to hone some example services to be used as reference for our internal scenarios, I've created this WCF Duplex Channel example, pulling together several examples found through the years.
The duplex part isn't working and I'm hoping we can all figure it out together. I hate posting this much code, but I feel I've trimmed th...
I have a self hosted WCF service (using a Windows Service). The installer currently places all the exes into "program files".
I am deploying the app.config file for the windows service because it contains the service endpoint information. how can I move that file (app.config) to "program data" (%appdata%) directory and have the exe sti...
I am trying to self-host a WCF service with the use of WCFExtras. Has anyone been able to add the wsdlExtensions endpoint behavior to the ServiceHost (not through app.config)? It appears that the class doesn't have a public constructor. Has anyone successfully accomplished this? Thanks!
...
I am having trouble setting up SSL with my WCF on IIS 7.5. I have seen this post:
http://stackoverflow.com/questions/470111/wcf-not-using-my-domain-name-but-rather-my-computer-name-when-viewing-myservice
However, the solution for IIS 7 does not seem to be working for me. In addition, I have a wildcard ssl, I'm not sure if that makes ...
I am working on WCF client-server app. where the client has to be constantly synchronized with the server (at least every 10 seconds). At the moment I'm polling the server to see if anything has changed. If so, the changes (sometimes tens of db records) are pulled down to the client.
My design felt a bit clunky so I had a look at how g...
What exactly is OData and how important/necessary is it to start learning this new concept, wrt implementing data services?
Also why is the WCF Data Services documentation so tightly coupled with OData?
Edit: Based on answers here's a follow-up question - I shouldn't be trying to implement WCF Data Services sans OData,or I can do that...
Is it possible to use WCF's CallbackContract or any other "remote eventing" mechanism provided by WCF from an Asp.Net Ajax control/page?
So far all the articles I found treated separately about CallbackContracts and WCF's usage from Asp.Net pages.
Is there any way to make the service's callback reach back to the page that initiated the...
What tools and techniques have you used for testing your wcf services? Where there any special considerations made for the type of hosting you used(ie windows service vs IIS vs WAS)?
...
I have a WCF service that's hosted in IIS, and uses a WS HTTP binding (the external service). This service ends up calling a second WCF service that's hosted in a Windows service, over Net TCP (the internal service). When the internal service throws a FaultException, the external service crashes rather than throwing it to the client. All...
Hi,
I have a WCF webservice using the WebServiceHost class.
new WebServiceHost(typeof(MyServiceClass));
If I use a blocking call like Thread.Sleep (just an example) in one of my webservice methods and i call this method the whole service is not usable while the blocking call is active.
Is that normal behaviour or is there an error so...
I have a simple Fire and Forget service operation that works fine and doesn't block. However, when I try to close the service proxy, it will block until the one-way call completes. Is this expected behavior?
Client Code:
var serviceProxy = new MyServiceProxy();
serviceProxy.OneWayCall();
serviceProxy.Close(); // This blocks until OneW...
Is it preferable to return a Dictionary<int, int> or an int[][] on a WCF response? Or does it not matter?
...
I implemented a class that implements IErrorHandler interface to log WCF errors. One of the things that I'd like to do is log who the identity of the user than connected to my service when an exception occurred. All my logging occurs in HandleError() method of IErrorHandler interface, but since HandleError() may not have current operatio...
what is the difference between binding and binding extension in WCF?
...