wcf

WCF Service doesnt run on IIS!

Hi, I have a WCF service hosted at local IIS. I created a ASP.NET website that consumes this service hosted at IIS. While running it from Visual Studio WebDev Server, everything works fine, but as soon as i run the same website [after hosting in IIS] from the browser, the website doesnt seem to be communicating with the Service! The...

Implementing IEquatable in class marked with DataContract. Does it work?

What I am trying to accomplish is to be able to use List<>.Contains() using the custom data structure(s) returned by the WCF service. I implemented the IEquatable<>.Equals but it's not really working on the client side. Contains() always returns false. I am wondering if the Contains() method is actually part of the class when it's put ...

How do I authenticate a WCF Data Service?

Hi! I've created an ADO.Net WCF Data Service hosted in a Azure worker role. I want to pass credentials from a simple console client to the service then validate them using a QueryInterceptor. Unfortunately, the credentials don't seem to be making it over the wire. The following is a simplified version of the code I'm using, startin...

How to add JSONP support in a .NET 3.5 WCF REST JSON service

I just made a WCF REST JSON service for .NET 4 that uses crossdomainscriptaccessenabled ( http://msdn.microsoft.com/en-us/library/system.servicemodel.webhttpbinding.crossdomainscriptaccessenabled.aspx ) . Unfortunately for me, the service is to be used in Azure, and Azure STILL don't support anything more than .NET 3.5. So, my question i...

Relay WCF Service

This is more of an architectural and security question than anything else. I'm trying to determine if a suggested architecture is necessary. Let me explain my configuration. We have a standard DMZ established that essentially has two firewalls. One that's external facing and the other that connects to the internal LAN. The following...

WCF Service w/ SharePoint Error: Could not find default endpoint element that references contract....

Full error message: Could not find default endpoint element that references contract 'PublicationServices.IPublicationService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be fou...

How to test a .net application against a proxy?

I need to support the use of proxy on our application that is using WCF connections. We do not have any proxy server on our network and I don't want to disrupt our corporate network by requesting a proxy installation. I was thinking of installing a proxy server on a local virtual machine and configurating Internet Explorer so that it wi...

How does VS2010 Configure Service Reference deal with localhost?

I go and setup a service reference to something like http://localhost/myService/test.svc However, it apparently does some magic and in the *.disco file (and elsewhere) it ends up with http://mymachine.mydomain.com/myService/test.svc I'm trying to understand why this happens. Update: It seems they're trying to "help" but the IDE c...

does Silverlight 4 support wshttpbinding?

Now that the stable release is out, could someone please confirm if SL4 supports wsHttpBinding? and also any feedback on netTcpBinding? ...

WCF MustUnderstand headers are not understood

Hello everyone, I am using a Java Web Service which is developed by one of our vendor which I really do not have any control over it. I have written a WCF router which the client application calls it and the router sends the message to the Java Web Service and returns the data back to the client. The issue what I am encountering is, I...

What are the books useful to clear 70-503 certification on WCF

Hi, I plan to appear for the 70-503 WCF exam. What preparation material will help me to clear exam? If anyone has already appeared for the exam, any ideas how much perparation time is required for this? (Note:- I have not used WCF in any live project, but have working knowledge of WCF) Thanks for reading!! ...

an unsecured or incorrectly secured fault was received from the other party

Hi. I have a Windows program that calling a WCF service. This service after a few times be strongly slow and eventually this error will encounter "an unsecured or incorrectly secured fault was received from the other party". Restart after once again to the service starts again. sincerely. ...

Mocking a Wcf ServiceContract

I want to mock a ServiceContract. The problem is that Moq (and Castle Dynamic-Proxy) copies the attributes from the interface to the dynamic proxy which Wcf don't like. Wcf sais: The ServiceContractAttribute should only be define on either the interface or the implementation, not both. Exception is: InvalidOperationException - The servi...

monotouch - updating data locally

Hi In my ap we serilaize the data locally for offline use. To ensure the app is always up to date I fire off an update on launch. To do this I have a set of WCF services that will get a delta for the requested data. Rather than complicate things I have a service to update events, a service to update stages, a service to update acts etc...

Unit testing an IExtension<OperationContext> for use with WCF Service

I'm trying to develop a extension (IExtension<OperationContext>) for System.ServiceModel.ObjectContext using TDD. The extension is to be used as storage for a lifetime manager to be used with Windsor Castle. The problem lies in abstracting (mocking) the OperationContext. As it is a static object that gets automatically created during ru...

How to allow netNamedPipeBinding to work with requiring UAC?

I have a service running under Local system account. I have an application that run in a non-UAC mode. Both interact with each other as both act as server and client. Application as client can communicate with Service. But Service as client cannot communicate with application. If I run with UAC the problem is solved. <customBinding> ...

Consuming WCF from BizTalk 2006r1

Hi I need to create an Orchestration in BizTalk 2006r1 that will consume a WCF basicHTTP web service. Does anyone have a pointers on how to do this please? The WCF service has been created by another team but I am able to request that they create an additional endpoint with binding configuration set to make calling from BizTalk SOAP ada...

Strange WPF Behaviour With WCF Async calls

I have a WPF application calling WCF via Async calls. The application has four tabs in which each are loaded from seperate async calls, each tab has a busy indicator. The problem: When running within Visual Studio I can click a refresh button on each tab and each tab's busy indicator starts and the data is retrieved from the WCF ser...

WCF 4.0 & Sync Framework 2.0 & Entity Framework 4.0 & ASP.NET MVC 2.0 & auto generated code

Hello, I have to use Sync Framework 2.0 in our WPF app that will contain SQL Compact 3.5 and will synchronize with SQL Server 2008. I followed this video : http://download.microsoft.com/download/6/7/3/6730f0e7-a649-4656-96ab-150c7501a583/IntroToSyncServicesADODetNet_HighQuality.wmv. But instead DataSet I've used EntityFramework 4...

vsts load testing wcf app

I have a simple test written like this public class Test { [ThreadStatic] private static ServiceClient client; [TestMethod] public void TestCase1() { If( client == null) { .... //instantiate client } client.CallMyServiceMethod() } [TestMethod] public void TestCa...