wcf

WCF converting time based on timezone automatically

Hi, I am using WCF service which returns current time of the server. My Client is in different time zone. When I call this service, It is automatically converting the time returned by the server to local time, which I do not want. How do i ignore this? ...

WCF: How to programmatiacally set the Service Principal Name on a hosted service

Hi there, To do the above using the config file I would do: <endpoint address="...." binding="netTcpBinding" bindingConfiguration="MyBinding" contract="IService1"> <identity> <servicePrincipalName value="name"/> </identity> </endpoint> But how do I add it to the below code? ...

WCF and passing windows credentials

Hi there, I have a website hosted on ServerA which runs using an App Pool using a special user accout with domain privilages to access our database. In the config file of the website I specify: <identity impersonate="true" /> I then have a service which is also on ServerA and hosted in a console app programmatically (i.e. no conf...

WCF Service netTCPbinding

I want to user netTCPbinding for that I changed my web config as below : <services> <service name="DXDirectory.DXDirectoryService" behaviorConfiguration="DXDirectory.Service1Behavior"> <!-- Service Endpoints --> <endpoint address="" binding="netTcpBindi...

Reconnect on directory change

I have multiple web services which lie on different directories: Service A is located under http://localhost/svcA Service B is located under http://localhost/svcB Both web services are accessible over a custom HTTP binding with Connection: keep-alive to reduce the handshaking overhead. When I connect to service A over a browser, and...

AddressFilter mismatch at the EndpointDispatcher

Hi. I have a WCF Web application that uses a WCF Class Library. My project is a WCF Web project and I am self-hosting. My problem is that all my web service methods hang with: And "Unable to automatically step into the server...etc". The error (not very helpful) returned is: The operation has timed out When I invoke the same met...

catch (QuotaExceededException ex) and get something useful?

The only message it pushes back to me is: {"The size necessary to buffer the XML content exceeded the buffer quota."} System.ServiceModel.QuotaExceededException Do I need more room in my transport? Like increase either the maxBufferPoolSize or maxReceiveMessageSize ? <httpTransport manualAddressing="false" maxBufferPoolSize="500000"...

wcf exposing generics

I have an application where client and server share types, and interoperability is not one of our concerns. I am planning to have a single repository for all web enabled objects, and i was thinking of a generic interface for my exposed service. something like T GetObject(int id) but wcf doesnt like it since its trying to expose its sch...

Problem with accessing WCF service hosted on IIS from a Windows application

I made a WCF Service with wsHttpBinding that uses asp.net membership provider for authentication. I can able to host the service on Server successfully. But my problem is wiered. (I can able see the .svc and wsdl files in browser irrespective of the domain) I can able to consume the service only from my machine or any other machine in th...

Trying to understand the lifetime of the AuthorizationContext object

Hello, I have a simple authorization setup that checks for certain configured active directory roles in a custom authorization policy (IAuthorizationPolicy) - and adds claims if those roles are possessed. On top of that, I have a subclass of ServiceAuthorizationManager which overrides CheckAccessCore. It verifies possession of some of...

WCF service not returning changed object

I have an object I pass to a WCF service. Then on the server, the service modifies some properties of the object, and returns an int. On the client side, after the service is called, the changes made to the objects' properties are not there. My unit tests work fine. But when run over services, the problem occurs. Any ideas on how to f...

Unable to automatically step into the server when debugging WCF

I get the dreaded: Unable to automatically step into the server. The remote procedure could not be debugged.This usually indicates that debugging has not been enabled on the server." Now, I have been reading that I need to add <compilation debug="true"> to the web.config . Fair enough, my problem is that my WCF service is a nettcp ...

Should remote UI be implemented using SOA?

Previously we had desktop applications but given the fact that accessing the server (either physically or remotely) was undesirable for the client we turned them into windows services that will run in a (theoretically) 24/7. Now we need to provide a remote user interface to that services in order to keep the old functionality and the ol...

Recommendations for fully or partially porting my Flex client to C#/SQL Server?

I am a ways into developing an client that communicates with a pre-existing server using the Actionscript Message Format (AMF). I love designing my GUI in Flex, as I've found refactoring my GUI to be very straightforward since everything is nested well in the mxml file. However, there is alot to be desired in the API's that are availab...

What is the best suited authentication technique for this scenario ?

Please suggest me the best authentication way to implement in the scenario mentioned below: The requirement is I have to deploy a WCF web service in multiple countries across the world. NOTE : All the machines on which the service is deployed are on the same domain. 1.The clients that access this service should fall in the same domain...

WCF and <identity impersonate="true" />

Hi there, What is the difference between these two lines of web.config code 1. <identity impersonate="true" /> 2. <identity impersonate="true" userName="MyUserName" password="MyPassword"/> Where MyuserName and MyPassword are my windows credentials. If you have IIS setup to use windows credentials shouldn't "1." pass in my windows ...

What is the limit of concurrent call to a service on TCP with reliabalesession TRUE?

What is the limit of concurrent call to a service on TCP with reliabalesession TRUE? ...

DataContractSerializer only partially serializing my objects

I am using the following code to serialize an object to XML, StringBuilder sb = new StringBuilder(); DataContractSerializer dcr = new DataContractSerializer(query.Result.GetType()); XmlWriterSettings xws = new XmlWriterSettings() { CloseOutput = true, Encoding = Encoding.UTF8 ...

Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.

I am using IIS V5.1. Integrated windows authentication I have a following web config: <system.serviceModel> <bindings> <wsHttpBinding> <binding name="wsHttpEndpointBinding"> <security mode="Transport" /> </binding> </wsHttpBinding> </bindings> <services> <service behaviorConfigura...

How to Configure the Virtual Directory to Require SSL ?

I am using IIS V5.1 I have wcf service application for which I am using security mode = Transport. and wshttpbinding. How can I Configure the Virtual Directory to Require SSL ? ...