I'm having a problem at work in that our app which uses WCF for SSO is failing when using selective authentication for a domain trust when communicating with the other domain. This is on Server 2k8R2 machines, at a full 2k8R2 functional level for both of their domains (this is a test system, because we have a customer that wants to depl...
I want to expose an enum to my client application without referencing it in my WCF Service. However the enum is not visible in the client application. Below is my code:
[DataContract]
public enum Columns
{
[EnumMember]
Column1= 0,
[EnumMember]
Column2= 1
}
[ServiceKnownType(typeof(Columns))]
public interface IService
{
...
Hello, I'm a little new to DI containers like StructureMap and I've been using it for a short time with asp.net mvc applications. Now I'm splitting my architecture that will have a WCF service layer and a sort of consumers like ASP.NET MVC app, Silverlight App, And Winfors/WPF App. When using SM with asp.net mvc I've been initializing th...
So, I'm using the Developer's Guide to the WCF REST Starter Kit and having a problem with the RequestInterceptor. I have the exact code the guide is showing but for some reason the method never ends.
This is my code:
public override void ProcessRequest(ref RequestContext requestContext)
{
GenerateErrorResponse(requestContext, HttpSt...
I have a solution containing about 20 WCF endpoints where each endpoint shares one of two configurations for bindings and behaviors. The two different configuration I have is so I can either do a custom username/password authentication or do a certificate authentication. All of my endpoints specify a specific base address. If I start ...
I have some class that I'm passing as a result of a service method, and that class has a get-only property:
[DataContract]
public class ErrorBase
{
[DataMember]
public virtual string Message { get { return ""; } }
}
I'm getting an exception on service side:
System.Runtime.Serialization.InvalidDataContractException:
No set method...
My application communicates with a large number of wcf services i.e. my application has several assemblies which each consume a different wcf service.
I am looking for a good wcf client design pattern so that I can keep my code concise, reusuable and elegant.
The wcf services which I consume are all the same - the basically used to che...
I have WCF REST service which retrieves tags from database. Some tags have special chars like &, +, #, (, ) in them. I am able to retrieve tags with #, (, and ) by url encoding the query string.
But I am not able to retrieve tags with '&' and '+' by url encoding the query string.
I would like to know the solution for this.
Thanks
...
Hello,
I want to use the .net class HttpListener to intercept requests to my selfhosted (WebServiceHost) WCF Data Service in order to add the "WWW-Authenticate" header to the response (for user authentication). But it seems like that the HttpListener doesn't intercept any requests that go to my dataservice. The HttpListner works for dif...
Hi!
I have a problem with a WCF service, which tries to serialize too much data. From the trace I get an error which says that the maximum number of elements that can be serialized or unserialized is '65536', try to increment the MaxItemsInObjectGraph quota.
So I went and modified this value, but it is just ignored (the error is the sam...
This is problem for me with .Net 3.5 SP1 running on IIS7.5 64 bit (I tried forcing 32 bit but got the same result).
I have a WCF service that I want to use authentication-services with. When I have no behavior the WCF service paints (replies) without any error. Other services also work with other behaviors
As soon as I add userNameAuth...
We have a WCF service on a NLB cluster. The service is reachable via the NLB address but also via the specific node address.
The problem is that the service also has some maintenance interfaces that must not be reachable on the NLB IP.
I tried to configure this with
<endpoint address="http://NODENAME:8440/Maint" ...
but the endpoint...
Hi, and sorry for another Cross Domain question.
I have been fighting with this all day now and am at the point of boiling over.
I have a Silverlight Application Project (SLApp1), a Web project for hosting the Silverlight (SLApp1.Web) and the WCF Project (SLWcfService).
Now I am building everything together and all the projects are in...
I have a per-call service set to use a reliable session (transport session) however when I set the inactivity timeout to 1 minute the timeout does not work.
reliableSession enabled=true inactivityTimeout=00:01:00
When I set the receiveTimeout to 00:01:00 the client did timeout after one minute.
Why won't the inactivityTimeout fire when...
I have the following node in my system.serviceModel node of my WCF service, but my log definitely gets more than 3 messages written to it:
<diagnostics>
<messageLogging maxMessagesToLog="3"
logEntireMessage="true"
logMessagesAtServiceLevel="true"
logMalformedMessages="true"
logMessagesAtTranspor...
I have the following service contract:
using System.Windows.Forms.DataVisualization.Charting;
...
[ServiceContract]
public interface IMyService
{
[OperationContract]
bool Print(Chart chart);
}
When I run attempt to host the service (in Visual Studio under the WCFTestClient) I get the following exception:
Failed to add a serv...
I am building a set of WCF services that share common data contracts (or entities if you prefer). These are simple data transfer objects that are decorated with DataContract and DataMember attributes. I am explicitly specifying the name and namespace. In trying to follow the principles of IDesign's recommendation of averaging 12 members ...
Hi,
I'm writing some kind of Computing farm with central server giving tasks and nodes that compute them.
I wanted to write it in such way, that nodes don't know what exactly they are computing. They get (from server) an object that implements IComputable iterface, has one method, .compute() that returns IResult type object and send it...
I am developing a solution with multiple WCF services which all communicate among themselves, even though they are of different types. The services connect to one another through the ChannelFactory generic interface, and every service is hosted inside a ServiceHost.
My question is if it would be correct to use a callback contract among ...
Hello,
I recently created a WCF service (dll) and a service host (exe). I know my WCF service is working correctly since I am able to successfully add the service to WcfTestClient.
However, I seem to be running into an issue when I comes to utlizing my WCF from a service host (exe). I can add a reference to the WCF (dll) to my servic...