wcf

Is there a design pattern for dealing with large datasets over the internet?

I am looking for a design pattern that handles large data sets over the internet, and does periodic updating of these objects. I am developing an application that will display thousands of records in the UI at one time. Additionally, various properties on these objects are quite transient and need to be updated on the client to keep th...

Error while browing WCF service

2009-11-03 16:36:10,818 [3404] ERROR WebApplication.Global [UserHostAddress: [::1] ApplicationSource [//TestService.svc]] - Application_Error handled Exception: Stack trace for 1 exception(s). Root cause at the top. 1: An item with the same key has already been added. System.ArgumentException inside C:\Windows\assembly\GAC_MSIL\Sys...

Obtaining a list of connected clients for a wcf service.

How can I enumerate some sort of location identifier for all of the connected clients for a servicehost? I'm using a duplex connection for long running calculations. The Service host is a singleton. I can figure out (in .net 3.5) the ip of the calling client but i am unsure how to get the ip of all connected clients. ...

Debugging WCF service library--how to "run" it?

I have the source to two Visual Studio solutions. One is a website that calls a WCF service, and the other solution is a WCF service that compiles into a DLL. The website has the WCF service's binary DLL as a reference. Here's the problem: when I run the website, an uncaught exception makes its way up from the WCF service. How do I run...

WCF testing can I use temporarily generated certificates?

Hi How can i generate temporary certification in windows xp sp3 for IIS 5.1 for hosting WCF services with basicHttpBinding in https? Will it be valid for testing in https evironment locally? thanks nRk ...

How do I access an incoming request's endpoint (service/user)principalname?

I've had an issue with security in my WCF server, so now we authenticate each request via ServiceSecurityContext.Current.WindowsIdentity. However now, for other reasons, in case that value is null, we need to access the endpoint corresponding to the service being requested and get the ServicePrincipalName or UserPrincipalName supplied ...

Closing a session with PollingDuplexHttpBinding

I'm using the WCF PollingDuplexHttpBinding channel to push notifications to Silverlight clients. For the most part it works well but I'm fighting it to get a few basis session management functions to work properly. The biggest problem I've got is trying to let the server know the client has finished with a session and no longer requires...

WCF dependency on HTTP Filter - what to do with Win 2008 server?

We had the same problem described here. we implemented the same solution of having a dependency on HTTPFilter. We recently tried to install on Windows 2008 - it appears the HTTPFilter service is not available there, so our service will not start. What should we do on Windows 2008? Do we need to add a dependency on another service? Whi...

WCF - EndpointNotFoundException, There was no endpoint listening

Hello there, My WCF Service is hosted under Windows Service and in case it is not running when client makes a call to its methods, client gets the EndpointNotFoundException with this message: There was no endpoint listening... Is there a way I can check if the WCF service is up and running before making calls to the service methods? ...

How do I use MsmqIntegrationBinding with a non-transactional queue?

This is my service contract: <ServiceContract> _ <ServiceKnownType(GetType(String))> _ Public Interface ISecurityMasterChanged <OperationContract(IsOneWay:=True, Action:="*")> _ Sub ValidateCusipInMessage(ByVal message As MsmqMessage(Of String)) End Interface This is my class Public Class SecurityValidator Implements ISecurityM...

WCF sending huge data

I want to send a huge set of data to a WCF service. The data might consist of thousands od records (entities), depending on the parsed input file. Now the question is: what is the most optimal way to send these data? a. Record by record? By this I will be sure that I won't exceed the maximum allowed message size and I can recover from...

WebService GET/POST Call and SOAP

I was going through this link below: http://support.microsoft.com/kb/819267 Here it explains to enable HTTP GET/POST calls for web service, for calling a service directly through the browser. Questions: While calling through browser are we using GET or POST? How it gets decided? If we are using regular HTTP GET/POST instead of SOAP,...

Calling WCF Service - Service Instantiation

Hello there, I have added reference to WCF Service in my client asp.net website. Right now, I am just instantiating WCF Service at every service method call as: TemplateServiceClient objTemplateService = new TemplateServiceClient(); objTemplateService.MethodCall(); I am not sure about the performance down due to above. If it is goi...

Need Help with PHP Client to .net WCF webservice

Any Suggestions Would be very helpful! I need a little help getting a php client to connect to a .net WCF webservice and return a usercontext. I can get it to work in .net but not php. You have to sign in first which returns a usercontext that you pass to the other methods. Developer Help: The UserContext property gets or sets the...

Updating Service from ASMX to WCF Service Problems!

The following is some old ASMX code which I need to convert to WCF service code Dim cc As New System.Net.CredentialCache cc.Add(New System.Uri(url), "BASIC", New System.Net.NetworkCredential( _ userName, _ password, _ domain)) And here is my WCF code: ...

Multithreading in WCF with accurate timer requirement

I have a WCF app that accepts requests to start a job. Each job needs to do something after exactly X minutes (e.g. 5 mins.), there can also be a job request at any time and simultaneously. This is what I have in mind, // WCF class public class RequestManager { // WCF method public void StartNewJob() { // start a new...

Delegates And WCF Methods

Hi. I have successfully designed a large file upload method using WCF. Now, I would like to report progress for each unique file being loaded. In my upload method, i have the following code block: while ((bytesRead = request.FileByteStream.Read(buffer, 0, bufferSize)) > 0) { outfile.Write(buffer, 0, bytesRead); totalBytesRea...

Why is WCF reading input stream to EOF on Close()?

We're using WCF to build a simple web service which our product uses to upload large files over a WAN link. It's supposed to be a simple HTTP PUT, and it's working fine for the most part. Here's a simplified version of the service contract: [ServiceContract, XmlSerializerFormat] public interface IReplicationWebService { [Operation...

When creating a WCF Service with NetTcpBinding, use endpoint "localhost" or machine's host name?

I have a WCF service that uses the NetTcpBinding and is running within a Windows service. Remote clients connect to this service. So far, I have defined the endpoint to use "localhost". If the host machine has multiple network adapters, will it receive messages on all adapters? Would it be better to assign the machine's host name to t...

Troubleshooting Web Service Consumption

I am attempting to connect to hosted solution's web service. The solution takes an xml query and returns an xml resultset via soap. When I connect to the WSDL using a .Net 3.5 service, the code will not compile due to ambiguity errors. When I connect using a .Net 2.0 Web Service the project compiles and when I build the xml query and...