All Questions

Tagged with
Filter by
Sorted by
Tagged with
184 votes
1 answer
6k views

Catch-22 prevents streamed TCP WCF service securable by WIF; ruining my Christmas, mental health

I have a requirement to secure a streamed WCF net.tcp service endpoint using WIF. It should authenticate incoming calls against our token server. The service is streamed because it is designed to ...
user avatar
39 votes
7 answers
18k views

OperationContext.Current is null after first await when using async/await in WCF service

I am using async/await pattern in .NET 4.5 to implement some service methods in WCF. Example service: Contract: [ServiceContract(Namespace = "http://async.test/")] public interface IAsyncTest { ...
mdonatas's user avatar
  • 1,770
21 votes
6 answers
14k views

Cannot have two operations in the same contract with the same name (Async & Non)

I get the following exception (Cannot have two operations in the same contract with the same name, methods ExecuteAsync and Execute) when the following service is activated. [ServiceContract] ...
Brett Janer's user avatar
17 votes
1 answer
22k views

WCF .NET 4.5 on Windows Server 2008 R2

In Windows Server 2008 R2, I cannot activate WCF Http/Tcp Activation windows features for .net 4.5 from Server Manager Server manager in Windows Server 2008 R2 does not support .net 4.5, even though ....
Zasz's user avatar
  • 12.4k
14 votes
2 answers
4k views

Including SAML2.0 token in WCF service call without using WIF

I'm trying to set up a WCF service protected by ADFS. I'm currently able to request a token and send it with the request using WIF and Thinktecture IdentityModel 4.5 with the following code: static ...
Wouter Roos's user avatar
11 votes
4 answers
6k views

WCF SslStreamSecurity DNS Identity Check failing for just 4.6 framework

I am working on developing a new binding for a Wcf service that is hosted in IIS, I thought I got everything working, but it turns out that the client only works when it is targetting .Net framework 4....
BrandonAGr's user avatar
  • 5,917
8 votes
3 answers
13k views

wcf AddressAlreadyInUseException

I already viewed those posts: wcf System.ServiceModel.AddressAlreadyInUseException, Windows Service hosted WCF over HTTPS, Getting AddressAlreadyInUseException after upgrading to .NET 4.5, none of ...
David Acero's user avatar
7 votes
2 answers
12k views

Use wsse security header in soap message (Visual Studio 2015, .Net Framework 4.5)

I would like to consume a Soap Service provided by DHL. You can find the wsdl here: https://wsbexpress.dhl.com/sndpt/expressRateBook?WSDL Therefore I created a new ClassLibrary in Visual Studio 2015 ...
Marco's user avatar
  • 193
7 votes
1 answer
4k views

WCF / svcutil in .NET 4.5 generates unusable code by default

With .NET 4.5, my WCF creation using svcutil suddenly seems to break (I've been using only .NET 4.0 until very recently) .... With the default settings I'm using to convert a pre-existing WSDL to my ...
marc_s's user avatar
  • 743k
7 votes
2 answers
3k views

c2WTS (Claims to windows token service) in .net 4.5

I need to get a Windows token from from Claims. The solution is a Claims Aware WCF webservice that uses ADFS 2.0 and runs in IIS ASP.NET 4.0. (The kerberos token is needed towards impersonated ...
HakonIngvaldsen's user avatar
7 votes
1 answer
486 views

SvcUtil /edb doesn't generate INotifyPropertyChange when DotNET 4.5 is installed

All of the dev computers here but one has DotNET 4.5 installed. The last one has 4.0 installed. Only the one with 4.0 generates proxy classes that implements INotifyPropertyChange, all other computers ...
Carl R's user avatar
  • 8,174
6 votes
2 answers
10k views

Getting AddressAlreadyInUseException after upgrading to .NET 4.5

I recently installed the new .NET Framework 4.5 (previously was 4.0 installed) on my Server and I´m getting a System.ServiceModel.AddressAlreadyInUseException when I start my Windows Service that ...
Jehof's user avatar
  • 35.2k
6 votes
2 answers
2k views

Different timeouts for different requests to the same WCF service

I have a WCF service with https bindings and a callback. The service is referenced in the client as a service reference. The timeouts are defined in the config files for both the service and the ...
puneet's user avatar
  • 787
6 votes
1 answer
2k views

Prevent serialization of null members in DataContractSerializer

Let me preface by saying I'm fairly new to WCF, and might be using the wrong terminology throughout here. My project has two components: A DLL containing the classes for Attachment, Extension, ...
crush's user avatar
  • 16.9k
5 votes
2 answers
952 views

Can't resolve/use System.ServiceModel.Security.WSTrustServiceContract as service name

I have a token issuer WCF service which is using Microsoft.IdentityModel (WIF 3.5) that I need to upgrade to System.IdentityModel (.NET 4.5). The problem is that I can't change the original name of ...
dstr's user avatar
  • 8,608
5 votes
1 answer
313 views

WCF Getting "An error occurred while receiving the HTTP response to.." on random call

I am receiving randomly (Not always) "An error occurred while receiving the HTTP response to.." when calling SOAP API from client. It does not happen every time. My application itself is a WCF service....
FaizanHussainRabbani's user avatar
4 votes
3 answers
2k views

Why Can You Expose Private Methods Publically in a WCF Service?

Why We can put the [OperationContract] Attribute on private methods in wcf services. From the day start of my programming i have been taught private methods are those which are not accessible outside ...
bilal's user avatar
  • 648
4 votes
3 answers
4k views

.Net 4.5 WCF Error 404.3 on IIS 7.5

I deployed a MVC4 web application including a wcf service. when i try to browse to the .svc file i receive Error 404.3 (Error Code 0x80070032). I tried all the relevant answers i read: 1. adding a ....
Shlo's user avatar
  • 1,036
4 votes
1 answer
990 views

Name attribute of DataMember in WCF looks like not working

I have WCF service exposed to multiple client. In some of client datamember name casing was not proper. My Class properties have invalid property name as per casing standards like public class ...
Kamran Shahid's user avatar
4 votes
2 answers
1k views

Why is there a resource/operation required instead of type/value using claim based auth

Our old software architecture used role based validation. We now want to use claims based authorization. As a matter of fact, I think we always used something modelling claims, even if we used role ...
nvoigt's user avatar
  • 76.5k
4 votes
1 answer
815 views

Combine old WCF service with new WCF service Almost There

I have a WCF service on IIS that a few .net web applications are using. I was tasked with writing a new WCF service, with the requirement that the existing web apps could use the new service without ...
Jazzy's user avatar
  • 519
4 votes
1 answer
618 views

Using instances and singletons in a high concurrency WCF web service

I am developing a WCF web service that return information from one of several databases based upon string providerCode. At the very highest level, the service calls a StaticBroker class, which ...
Carlos P's user avatar
  • 3,948
4 votes
2 answers
1k views

Massively increased new TCP connections # in .NET 4.5 over 4.0?

I am currently testing my WPF/WCF client application in .NET 4.5 vs 4.0 with a view of finally getting 4.5 rolled out to all client machines. The WCF portion uses BasicHttpBinding/SOAP. When ...
jamespconnor's user avatar
  • 1,402
4 votes
3 answers
14k views

Access is denied error accessing WCF service

I have a WCF service migrated to .Net framework 4.5 which is installed in IIS 7.0. I am able to browse the service in a browser. But when i refer the service in say a console application and try to ...
ARV's user avatar
  • 1,131
4 votes
3 answers
380 views

Workflow with messaging in MVC

Scenario: Request to approve comes in as a message on a bus (rapidMQ) Subscriber reads message and kicks off workflow if required Workflow is state machine workflow which starts off as Unassigned ...
newbie_86's user avatar
  • 4,560
4 votes
2 answers
6k views

WCF - Conflicting endpoints after .Net 4.5 installation

I'm recently installed the 4.5 framework on our development web server which runs IIS 7.5 on Windows Server 2008. After installation, two web services started having the same error. These web ...
user1706696's user avatar
4 votes
0 answers
131 views

What is the significance of configuration.svc and configuration91.svc files when adding a service reference (WSDL)?

When we generate a WSDL, there are multiple files along which what interests me is configuration.svc and configuration91.svc ? Why there are two files generated ? And why are they being named as 91 ...
now he who must not be named.'s user avatar
4 votes
1 answer
276 views

Why does .Net 4.0 build of client DataContracts cause MethodAccessException in .Net 4.5 application?

I have a class library named WebAccounts.dll that calls some (of my own) WCF web services. I have the web services project automatically build a client version of its data contracts for consumption by ...
xr280xr's user avatar
  • 12.9k
4 votes
1 answer
645 views

How to handle Compressed Request in WCF REST service

We have a WCF REST service hosted on IIS 7 with .NET Framework 4.5. The client is sending data in GZip compressed format with request headers: Content-Encoding:gzip Content-Type: application/xml ...
neo's user avatar
  • 6,201
4 votes
1 answer
1k views

IncomingWebRequestContext.UriTemplateMatch null in WCF Service

I am trying to implement OAuth in a web service such as: http://www.codeproject.com/Tips/372422/Secure-WCF-RESTful-service-using-OAUTH Each time, when the Authenticate method is fire, ...
elusive's user avatar
  • 470
4 votes
0 answers
773 views

Get certificate and user information in WCF service

I have a WCF service hosted in IIS. Clients communicating with the service must have one of our company's client certificates. The service uses the certificate to identify the client and handle access....
Peter Hedberg's user avatar
4 votes
0 answers
3k views

WCF serviceAuthenticationManager and TransportSecurity

I have WCF web service (.Net 4.5 RTM). I want to provide custom IPrincipal and IIdentity inplementations, so I decided to provide custom ServiceAuthenticationManager. Strange thing is that ...
adontz's user avatar
  • 1,438
3 votes
2 answers
6k views

WCF custom service host factory not being called

I've implemented a WCF Service Library (.Net 4.5) which works fine. Then I tried to implement Unity DI using a custom Servcie Host Factory. Debugging application I noticed that CreateServiceHost ...
user3651388's user avatar
3 votes
2 answers
1k views

WCF WSDL get rid of qXX namespaces

I have WSDL exported from WCF service with singleWSDL parameter applied. There are a lot of qXX XML namespaces used like in the following fragments for type and method. <xs:complexType name="...
adontz's user avatar
  • 1,438
3 votes
2 answers
643 views

WCF HTTP Service: installing vs2012 broke app

I have a selfhosted webservice (WebServiceHost) that also delivers html sites (with JavaScript files,images etc.) The service runs fine in .net 4.0 (with vs2010). Now I've installed vs2012 and my ...
Jeldrik's user avatar
  • 1,377
3 votes
0 answers
959 views

How to use Serilog for error logging in a .NET Standard 1.4 class library

I am working with .NET Framework 4.5.2 project. I am creating a class library and I want to use Serilog for error logging in this class library. However, since this is a class library, how do I ...
EiEiGuy's user avatar
  • 1,517
3 votes
1 answer
154 views

Same Entity for Web Api and WCF

I have entities that uses for WCF service at the moment. Sample like [DataContract] public class Student { [DataMember] public long Id { get; set; } [DataMember] ...
mrTester's user avatar
  • 235
3 votes
0 answers
130 views

Does Keep-Alive in WCF Use More Resources than Polling?

I could probably setup a couple test-bed applications and find out, but I'm hoping someone has already experienced this or just simply has a more intuitive understanding. I have three executables. ...
bjhuffine's user avatar
  • 934
3 votes
0 answers
2k views

HTTP request aborted due to the local channel being closed WCF error

I have a simple WCF Service using System.Runtime.Serialization; using System.ServiceModel; using System.Threading.Tasks; namespace Interface { [ServiceContract] public interface IService1 ...
Aleksei Poliakov's user avatar
3 votes
0 answers
925 views

Is enforceFIPSPolicy config key setting is not compatible with web applications/services?

Is enforceFIPSPolicy config key, as described here meant for windows application only? On my development machine (Windows 7) I enabled FIPS and then If I created a simple console app, as follows: ...
Sebastian K's user avatar
  • 6,293
3 votes
1 answer
1k views

WCF netHttpBinding on Windows 7

I currently have a client/server application written in .NET 4.0 using WCF with a netTcpBinding to provide full duplex messaging between my servers and my client applications. The server is a self ...
user2116522's user avatar
3 votes
1 answer
532 views

usage of async methods for webservice

I want to program a little Silverlight application where I have three DataGrids. Each Datagrid gets its data from a webservice using async methods. Now I want the first data grid to get the data from ...
Simon's user avatar
  • 454
2 votes
2 answers
6k views

Configure Service Reference... - Object reference is not set to an instance of an object

I am working with Visual Studio 2013, .NET4.5. Originally I was WCF service consumer but due to lack of resources in team that deals with subsystem I took over development of both sides of WCF ...
Matas Vaitkevicius's user avatar
2 votes
3 answers
5k views

IIS App Pool, memory management

I have a RESTful WCF service hosted on IIS 7.5. When some operation is called, it returns almost immediately, but starts a complex task, dealing with combinatorics and opening big files in memory. ...
Qué Padre's user avatar
  • 2,043
2 votes
2 answers
2k views

How to get rid of app.config and move it all into code?

I tried this question in a generic way on this post: https://stackoverflow.com/q/18968846/147637 But that did not get us to the result. Soooo, here it is concretely! I have the code below. It works....
Jonesome Reinstate Monica's user avatar
2 votes
1 answer
469 views

Complex Object won't return when using 'include' syntax in WCF with Entity Version 6

Okay so this one has got me stumped as I just see that my client basically disconnects and terminates when returning an object with 'include'. However it works fine without that across a WCF SERVICE. ...
djangojazz's user avatar
  • 14.4k
2 votes
2 answers
399 views

Large Files in WCF Service

I have a WCF SOAP service and I am trying to submit a file to the service that is too large (128KB). I have scoured the internet and found many suggestions about adding the maxReceivedMessageSize, ...
bkorzynski's user avatar
2 votes
1 answer
5k views

WCF Error The target principal name is incorrect from Autogenerated client and configuration

I am working with Visual Studio 2013, .NET4.5. Originally I was WCF service consumer but due to lack of resources in team that deals with subsystem I took over development of both sides of WCF ...
Matas Vaitkevicius's user avatar
2 votes
2 answers
225 views

Address of new ServiceHost always same as the old one?

I have the following test code which first tries to open a ServiceHost on an invalid address, then when it faults it calls both Abort() and Dispose (the latter probably isn't required). Then it ...
DeCaf's user avatar
  • 6,066
2 votes
1 answer
172 views

WCF object serialization woes

I have a basic object that I am sending over the wire via WCF. It's intended purpose it to help populate a Tree of data. Here's the basic structure: [DataContract] public class ProjectTreeNode { ...
Killnine's user avatar
  • 5,740