wcf

Authentication settings in IIS Manager versus web.config versus system.serviceModel

I have a WCF web service, and I want to use Basic authentication. I am getting lost in the authentication options: In IIS 6 Manager, I can go in to the properties of the web site and set authentication options. In the web site's web.config file, under system.web, there is an <authentication mode="Windows"/> tag In the web site's web.co...

Add a Binding Extension via Code

I'm trying to figure out a way to add a binding extension to an endpoint via code, instead of through configuration files. Ideally I want it to simply be an attribute I place on the service method. So far it seems like the only thing that isn't exposed publicly is the binding extensions. ...

Castle windsor security exception

I developed a small WCF service that uses Castle Windsor IoC container and it works fine on my PC. When I deploy it onto a Win 2008 R2 server and host the WCF service in IIS 7 it fails with the following error. I checked the server level web.config and the trust level is set to "Full". What do I need to do to get this to work. As a t...

Simple WCF service with REST - Resource cannot be found - error with ASP.NET Debug Server?

Hi, I'm testing a very simple WCF-Service with REST functionality enabled. It works fine on IIS, but the VS2010 debug webserver always says "The resource cannot be found" when appending the parameter after the .svc file in the browser uri. Is this a known issue with the asp.net debug webserver that it cannot work with REST or am I doing ...

WCF Multiple Service Configuration Issue

Scenario Ignoring that fact that some of the settings might be wrong and inconsistent or just not there!. Why does the program fail to compile when I try and put these 2 separate configurations for WCF Services into the same APP.CONFIG file? One was writen by myself and another by a friend, yet I cannot get the application to compile. ...

WCF - Define multiple services in a single APP.Config file?

Scenario I have a windows forms application. I want to use two different WCF Services that are in no way connected. HOWEVER, I'm not sure how to go about defining the services in my APP.CONFIG file. From what I have read, it is possible to do what I have done below, but I cannot be sure that the syntax is correct or the tags are all pre...

Generic set of WCF problem passing

I have a generic collection [KnownType(typeof(Brand))] [CollectionDataContract] [Serializable] public class PageOfItems<T> : List<T> { public PageOfItems() { } } Call is [OperationContract] [ServiceKnownType(typeof(Brand))] PageOfItems<Brand> GetBrands(PagingInfo pagingInfo); In reference to the service client, the returned object...

WCF Service Name & Binding Name

Scenario I have two WCF Services combined in a single App.Config file. I can't get the thing to run (the application compiles but fails at initialization of the services). Question I'm wondering whether I need to set the service name to be the same as something else that is also defined as part of the service overall? ERROR TypeInit...

How do you bypass TLS/SSL cetification validation in WCF for Exchange Web Services

I wan't to bypass SSL and use regular http protocol to connect to a Exchange 2007 server however we dont want to invest in a real SSL cert and the one we use is needed for blackberry enterprise server. Is there a way to bypass this here is the exception Request failed. The underlying connection was closed: Could not establish trust r...

service not defined when precompiling a web app with AJAX-enabled WCF Service

I created a web application in which one .aspx page calls an AJAX-enabled WCF service (created with Visual Studio 2008 Add New Item -> AJAX-enabled WCF Service). when I test the application in Visual Studio, it works and the page can call the service from Javascript but when I "publish" (code precompilation using Visual Studio) it to th...

Not disposing of a WCF proxy?

I have a WCF service which is a singleton and which manages a collection of proxies to another WCF service which is session-based. The singleton creates a new proxy and passes it some work to do, and the session-based service makes calls back to the singleton service when certain activities complete (pretty much all of the OperationContr...

Stuck on an ASP.NET/WCF WSDL Parsing Error

I have a WCF Web Service that my ASP.NET app uses. It has been working fine for quite some time. I just added in a Dev Express Grid (and the Dev Express DLLs) and a new page that uses them and now I am getting parsing errors on the WSDL. But the weird part is that it works fine on my machine but fails on the web server machine. (Bo...

Possible to use multiple ServiceReference.ClientConfig files?

I'm building a modular Silverlight application, using Prism. In the Shell project, I'm loading 2x modules, each hailing from a separate assembly. For convenience let's call them ModuleA and ModuleB ModuleA makes calls to WebServiceA. A ServiceReference.ClientConfig file is present in ModuleA's assembly. In order for this to work, in t...

WCF: parameters handled in custom channel not present in generated WSDL.

I have some special parameters to all my wcf service methods that are handled inside a custom channel and are not exposed in the service method parameter list. This works fine for json/xml endpoints, but the I don't know how to use a SOAP endpoint with this setup because the generated WSDL doesn't include fields that are not in the serv...

How to use authentication cookie from WCF Authentication Service in an ASP.Net MVC application

Okay, I've had little luck finding any documentation or tutorials for my specific scenario. I have an ASP.Net MVC web application that will be using WCF services for everything including authentication and roles (via membership providers on the WCF backend). I've had no problem setting up the authentication services but it does not se...

What is the best way to implement a callback scenario using WCF and ASP.NET MVC?

I am new to WCF. I just finished reading Learning WCF and I think I've got a pretty good grasp of the fundamentals. I am adding functionality to a line of business app that runs on ASP.NET MVC entirely inside the corporate LAN. I am calling into a service that will also send me events as they occur (and not as responses to service calls)...

Wcf service operation contract change

I recently added a parameter to one of the method of a wcf. It was a string parameter. The thing is that I didn't update the service reference on the client side but I was still able to call the wcf service ..... Wasn't it suppose to break? ...

How to recycle a IIS App Pool after a ServiceHost crash ?

Sometimes a ServiceHost -hosted on IIS- is faulted, so my service stop processing requests... Have you a solution to automatically recycle the app pool after such a crash ? Thanks, ...

can I debug my web project and wcf project on same vs 2008 instance ?

I have two projects in my solution   1- asp.net web project.   2- wcf serivce project.   3- other common projects between two listed above Current on the local dev machine I have to run two visual studio instance to run both projects in debug mode. That makes the system run out of resources as these projects share some other project...

Cannot connect to one of my WCF services, not even with telnet

I have six wcf services that I'm hosting in a windows service. Everything works great on my machine (Windows 7) (Edit: when hosted in Cassini, but not when running through the windows service) but when I try it in production (Windows Server 2003) I cannot connect to one of my six services, ReportsService. I figured I must have a typo...