Questions tagged [service-model]

39 questions
1
vote
1 answer

System.ServiceModel.FaultException'1' revised

I have a service reference defined in my project (created in vs2013) and the bindings in the AppConfig are defined thus;
Dom Sinclair
  • 2,458
  • 1
  • 30
  • 47
1
vote
0 answers

WCF Service + Client binding endpoint

My problem is with binding. It works when i run my client in debug mode but it doesn't work in release mode. Server and client run on the same computer. Unhandled Exception: System.ServiceModel.EndpointNotFoundException: There was no endpoint…
1
vote
1 answer

Service Activation error after install or update service

I am receiving this exception at the startup of the wcf service: The Application Log file isn't written in bin folder. I don't receive this exception on cloud development environment, instead I receive this error in production environment. The same…
Lluthus
  • 335
  • 2
  • 5
  • 15
1
vote
2 answers

Get setting from C# App.config file

I have an app.config file. It's from a sample given to me for an API I have to use... I want to get a setting from the file so that I can use the settings from there and not have to duplicate efforts. How can I get the words "FindMe", "LocalMachine"…
WernerCD
  • 2,137
  • 6
  • 31
  • 51
1
vote
1 answer

How to Configuring WCF services to work with both HTTP and HTTPS

Iam trying to configure a service for access over both https and http from a silverlight 4 application. I am able to access the service over https but not over http. I have made some research over the net but can't seem to get the configuration…
StackTrace
  • 9,190
  • 36
  • 114
  • 202
1
vote
2 answers

ASP.NET web service maximum array length quota

I'm gettingg this error in an ASP.NET web service whene recieving a file on the client: The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the…
1
vote
1 answer

Endpoint not found when accessing via URL in a browser

When I enter the address of my service, I get to see the WSDL file. However, When I add a suffix to the URL, I get the error message: "endpoint not found". It's definitely due to something wrong with my service model declaration but after a few…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
0
votes
1 answer

Why System.ServiceModel does not work with a WPF Project created with Visual studio 2022?

Im my WPF Application created with visual studio I want to communicate via named pipes with this (manually created) code: var pipeFactory = new ChannelFactory(new NetNamedPipeBinding(), …
Gener4tor
  • 414
  • 3
  • 12
  • 40
0
votes
2 answers

C# Maintaining old WCF in .NET5 with prior source code

In the new .NET5, Support for WCF has now been removed. I am wondering if it is possible to simply take all relevant source references from Microsofts source reference, and just compile it again in my C# project. AKA, everything in the namespace of…
Ilan Keshet
  • 176
  • 1
  • 8
0
votes
1 answer

Azure cannot access certificate PrivateKey "Invalid provider type specified"

We have an Azure Function (.NET 4.7.2) running for a year that sends messages to a webservice using a client certificate. This certificate has to be renewed but now we have done that we are getting this exception when sending a…
0
votes
1 answer

Using WCF Service in .Net Core 3.1

I am converting my Web API in .Net framework 4 to .NET Core 3.1, and in API I am consuming a vendor WCF service. The WCF Service using Mutual certificate Authentication and basicHttpBinding and customBinding. I could add the proxy classes through…
Subhash
  • 11
  • 3
0
votes
0 answers

WCF: System.ServiceModel.Configuration nuget package is missing in .NET CORE 3.1

I am trying to get the endpointURL. To get those endpointURL, I have to use system.servicemodel.configuration nuget package. However, in .net CORE I am not able to find those package. I am getting error in the below code public static string…
0
votes
1 answer

Error: 'Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0' after deploying Function to Azure

I use an Azure v1 Function (C#, .NET Framework 4.6.1) to call an external WCF service and for making this work, I added a reference to the System.ServiceModel assembly. This works fine on my local dev machine, but after deploying the function to…
AGuyCalledGerald
  • 7,882
  • 17
  • 73
  • 120
0
votes
0 answers

Missing method exception when Hololens app attempts HTTP connection with WCF web service?

We are attempting to use System.ServiceModel.dll to enact calls on our WCF web service. Our app builds and deploys OK but at runtime the following error is generated.. System.MissingMethodException: The method 'System.Void…
jtth
  • 876
  • 1
  • 12
  • 40
0
votes
0 answers

WCF test client error when using Visual Studio 2017 community edition

I have been experiencing this issue when trying to get my WCF service running. Any help will be highly appreciated. The server encountered an error processing the request. The exception message is 'Object reference not set to an instance of an…