All Questions
168
questions
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 ...
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
{
...
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]
...
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 ....
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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....
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 ...
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 ....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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
...
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, ...
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....
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 ...
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 ...
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="...
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 ...
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 ...
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]
...
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. ...
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
...
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:
...
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 ...
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 ...
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 ...
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. ...
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....
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. ...
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, ...
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 ...
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 ...
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
{
...