wcf

Multiple Methods to call a WCF Service

Hey I have a class that handles all the interaction in my application with my WCF service and it seems that MSDN say that the use of Using)_ statement with WCF is bad - I can see why this is bad and agree with it (http://msdn.microsoft.com/en-us/library/aa355056.aspx) my problem is that their suggested method of implementation will me...

IMetaDataExchange could not be found in the list of contracts implemented by the service

I have searched the web for resolution of this error, but everything I have found suggests what I have is correct. Maybe someone could take a look and spot an obvious mistake I just cannot see. I have a windows service, hosting two contracts: IConfigurationService IConfigurationAdminService The admin service inherits from the stand...

How to determine an attachment is there or not in WCF service when an user send a mail(either simple text mail or an attachment email)

How to determine an attachment is there or not in WCF service when an user send a mail(either simple text mail or an attachment email) using C#.NET ...

Shorten URL of WCF Service

I have a simple service and the URL is being generated as: http://localhost:1234/TestService/TestService.svc Is there any way to get this to be: http://localhost:1234/TestService.svc i.e. to remove the Project name from the URL? ...

Ways to keep abstract method server side for WCF

We are enforcing all our domain objects to implement GetHashCode. namespace Core { [Serializable] public abstract class DomainObject { public abstract override int GetHashCode(); } } namespace Entity.Domain { [Serializable] [DataContract] public partial class IdCard : DomainObject { private System.Int32 _effDte;...

How to get rid of tempuri.org in WCF service created by SharePoint Service Factory

I am exposing a WCF service on SharePoint 2010 using a Service Factory class and cannot completly get rid of the tempuri.org namespace in the generated WSDL. Here is what I do: The svc file in the ISAPI folder <%@ServiceHost Language="C#" Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressBasicHttpBindingServ...

WCF[Internet scenario]. Fastest way transmit\serialize(de) data

Hello guys. My wcf is hosted by IIS and used basicHttpBinding. My common data is datasets, whci I should serialize and transmit to client. I haven't got hundreads of MB, but I want to trnasmit it to client with best perfomance. As I understand I should use MTOM encoding. Right? Also want to know about type of transmitting object: DataS...

Old references never die

I'm able to run an asp.net application using a console host to host my services. This works fine. When I install the services to a server and then attempt to access them with my application, I get an error when running my search function (it's a search application) I used to be doing it using a stored procedure that is dynamically crea...

Debug WCF service hosted in local IIS not working

I have one solution WCFSampleSolution and it has all my projects - Web Service, Client and Website. The structure is something like: WCFSampleSolution C:\WCFSample\Website WCFService WCFWebClient I created WCFService project for my services. It contains IService1.cs and Service1.cs. Then I hosted the service in IIS. I did this by c...

Getting Custom UserName Credentials in a WCF Method Call

I have a WCF Service with a binding endpoint with security mode set to "TransportWithMessageCredentials" and a custom UserNamePasswordValidator to handle the credential validations. It's working fine. Since the validation is addressed outside of the service operation/method, is it possible (and if so how) to get the name of the authent...

regular expression: mine text data from other websites.

Hi, I want to crawl through lets say other companies websites like for cars and extract readonly information in my local database. Then I want to be able to display this collected information on my website. Purely from technology perspective, is there a .net tool, program, etc already out there that is generic enough for my purpose. Or...

Help with deciphering WCF timeout errors

I have a windows service that is very heavily multithreaded (hundreds to thousands at the same time). Those threads scan different machines and call WCF web services of one Web Server. Lately I started getting Timeout errors. The thing that confuses me is The request channel timed out while waiting for a reply after 00:02:41.880...

WCF Custom BehaviorExtension Error: An extension "silverlightFaults" already appears in extension collection. Extension names must be unique.

WCF Custom BehaviorExtension Error: An extension "silverlightFaults" already appears in extension collection. Extension names must be unique. I have a custom behaviorExtension for a silverlight project which helps in communicating faultcontract messages to client. This error occurs when the service is called. Works good in Dev and Q...

Calling WCF service with jquery and parameters

Ok, this is one of these basic questions, but I've googled and debugged now for two hours and the error escapes me. Simple scenario: WCF service with methods with parameters which I'd like to call through jquery. I can call methods without params alright, but with params, the call never makes it to my breakpoint in .NET. ServerCode: ...

C# in VS2010, using WCF, Hierachical Certificates and IIS6

Hi guys, We've been working a lot in an application developed in VS 2010, C#, and WCF. We use Transport as the security mode, and in the TransportSecurity Properties set to None and None. We are hosting the service in IIS6. After working a lot we managed to make it work using https. The Certificate we used was a self created one, creat...

WCF service returns 404 over https but not http

I'm migrating an existing service from HTTP (Dev/UAT) to HTTPS (Production), and I'm having trouble with the configuration. Here is the system.serviceModel section of my web.config: <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name=""> <serviceMetadata httpGetEnabled="true" /> <se...

Faking DNS resolution on a per hit basis

I'm writing an app that's sole purpose is to determine if one of our core applications is up and running in production. This application is a WCF application. The app is up and running on two different boxes behind a load balancer. The site on each box is configured to listen to traffic for the following DNS name: app.company.com. DNS re...

Why am I getting 400 bad request when calling a .Net 2.0 web service from WCF over https?

I have a web service that contains a method I need to run to generate a report. The web service method is written in .Net 2.0 and works fine on my test system which runs on the same server as the live system. The only difference is that the live version uses https. Whenever I change the endpoint address to the live service and run my ap...

WCF service show exception when securing service with wshttpbinding and username authentication

I have created a workflowservice in .net 4.0 I am trying to secure this (WCF) service and used the following link to see how this is done. I followed the instructions, however when a define a servicebehavior everthing works fine. The configuration is like this: <behaviors> <serviceBehaviors> <behavior> <servi...

Best practice to close WCF Clients after async calls

Hi there, Can anybody advice me the best practice for closing WCF clients after doing a async calls? Should it be within the "completed" method or should there be a different approach? /BB ...