Questions tagged [service-model]
39 questions
40
votes
7 answers
maxReceivedMessageSize and maxBufferSize in app.config
How to increase maxReceivedMessageSize and maxBufferSize parameters in app.config file to 2000000 before running the application.

Vishal I P
- 2,005
- 4
- 24
- 41
12
votes
3 answers
How to programmatically create a BasicHttpBinding?
I have to following code:
BasicHttpBinding binding = new BasicHttpBinding ();
Uri baseAddress = new Uri ("URL.svc");
EndpointAddress endpointAddress = new EndpointAddress (baseAddress);
var myChannelFactory = new ChannelFactory…

briba
- 2,857
- 2
- 31
- 59
4
votes
1 answer
Configuration Error : Unrecognized attribute 'maxBufferSize'
I had a recent change in my web.config file of a wcf REST service, I just added maxBufferSize="10485760" property to it. Please find the code segment below...

Sebastian Xavier
- 2,499
- 7
- 27
- 41
3
votes
1 answer
Why was System.ServiceModel.Persistence made obsolete?
I'm looking into creating a custom persistence provider for WCF, but according to MSDN, this entire assembly was made obsolete. I can't seem to find a reason for this, or recommendations as to what should be used in its stead. Can anyone tell me why…

elucid8
- 1,412
- 4
- 19
- 40
2
votes
1 answer
How to use ASP.NET 4.8 ConfigBuilders with system.serviceModel section of web.config
I have an ASP.NET 4.8 app that I am trying to integrate configuration builders into. I have installed the NuGet package Microsoft.Configuration.ConfigurationBuilders.Environment and added the required sections to Web.config (heavily truncated…

Paul Hunt
- 3,395
- 2
- 24
- 39
2
votes
1 answer
How can I use a Service Model from ServiceStack 4.0 in a ServiceStack 5.0 Project?
I have begun the process of migrating one of our many ServiceStack services from .Net Framework to .Net core. Most of the migration has been relatively smooth, but I have run into a brick wall with Service Models. This service is dependent on using…

Sorrien
- 143
- 1
- 9
2
votes
2 answers
Max Outbound connections
I have an application written in c# on .NET 4.0 which needs to make multiple web service requests. The web service requests vary in nature but are mostly requesting information.
The Types involved is a derivative of System.ServiceModel.ClientBase…

Frank V
- 25,141
- 34
- 106
- 144
2
votes
1 answer
Reduce repeated nested identity in WCF config
My web.config for my WCF app has a series of endpoints defined like so:

jcolebrand
- 15,889
- 12
- 75
- 121
1
vote
0 answers
How do I handle AX timeouts where the operation continues on? Abort not working?
I have a custom AX service operation that can take 5+ minutes to complete and I'm trying to figure out how to abort it from my .NET application, but aborting the client doesn't seem to do anything?
The problem is if I call the operation and the…

William YK
- 1,025
- 12
- 26
1
vote
0 answers
Could not load file or assembly 'System.ServiceModel.Primitives, Version=4.5.0.4, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I am getting the following error after installing a third-party NuGet package and trying to run.
FileLoadException: Could not load file or assembly 'System.ServiceModel.Primitives, Version=4.5.0.4, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.…

TechnologyEnthusiast
- 17
- 5
1
vote
1 answer
Cannot process the message because the content type 'text/xml;charset=UTF-8' was not the expected type 'application/soap+xml; charset=utf-8'
I got the following error when sending a request from SoapUI client to a WCF service:
Cannot process the message because the content type 'text/xml;charset=UTF-8' was not the expected type 'application/soap+xml; charset=utf-8'

MiguelSlv
- 14,067
- 15
- 102
- 169
1
vote
1 answer
How Can I resolve WS2007HttpBinding WCF Service Binding in .NET Core Client Application
I dispose a WCF Service Implemented with WCF 4.6.1 Framework containing an Endpoint binded with WS2007HttpBinding.
My purpose is to implement a .NET Core client Side application that calls this service.
When i tried to use CustomBinding, it…

kaisfarza
- 73
- 1
- 7
1
vote
1 answer
System.ServiceModel References
I'm trying to use System.ServiceModel
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.PeerResolvers;
in C# winform desktop application, but I can't find it in Visual Studio 2015 to add it to the project…
user6819872
1
vote
1 answer
How to change xsd:date format in svcutil.exe generated classes
I generated C# classes from .wsdl file and it works. But I have following issue. Service formats xsd:date types in response incorrect. Example:
2016-01-27 14:20:30
But it should be one of these:

ZyXEL
- 163
- 1
- 12
1
vote
1 answer
I can't add a reference to ServiceModel in a portable library project
I testing an UWP application and I want to use a proxy to consume a WCF service. I have a proxy that is a library for .net 4.6 but I can't add this project as reference in the project of universal application. It is normal because is a library for…

Álvaro García
- 18,114
- 30
- 102
- 193