service-model

System.ServiceModel References

♀尐吖头ヾ 提交于 2021-01-28 06:40:56
问题 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 References, which must be System.SeviceModel in Framework I guess, not sure Any advice would be useful 回答1: Update your project target framework to .NET 4.5 by Right clicking your project, going to properties, then application, then target framework.

How to Configuring WCF services to work with both HTTP and HTTPS - multiple bindings not working

回眸只為那壹抹淺笑 提交于 2020-02-08 07:23:27
问题 Iam fairly new to Silver-light and WCF, so please bear with me. I have silver-light application that calls .svc service. The service is being called successfully over https but i would also like to make it work with calls over plain http. What modifications do i need to make to my web.config and ServiceReferences.ClientConfig files below. My complete system.serviceModel section in my Web.config file is this. <system.serviceModel> <bindings> <customBinding> <binding name="MyApp.Web.GetData

Endpoint not found when accessing via URL in a browser

点点圈 提交于 2020-01-15 09:21:09
问题 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 hours, I'm inclined to admit that it's beyond me. I've made sure that the namespaces are correct as discussed here. The first URL works. The other, don't. http://---.azurewebsites.net/MyService.svc/ http://---.azurewebsites.net/MyService.svc/Ping http:

Get setting from C# App.config file

白昼怎懂夜的黑 提交于 2019-12-11 08:22:04
问题 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" and "My" in this app.config file (to drive pulling a certificate from the given information)? <?xml version="1.0" encoding="utf-8"?> <configuration> <startup>...</startup> <system.serviceModel> <bindings>...</bindings> <client>...</client>

maxReceivedMessageSize and maxBufferSize in app.config

时间秒杀一切 提交于 2019-11-29 02:49:05
How to increase maxReceivedMessageSize and maxBufferSize parameters in app.config file to 2000000 before running the application. You need to do that on your binding, but you'll need to do it on both Client and Server. Something like: <system.serviceModel> <bindings> <basicHttpBinding> <binding maxBufferSize="64000000" maxReceivedMessageSize="64000000" /> </basicHttpBinding> </bindings> </system.serviceModel> Jacob You can do that in your app.config. like that: maxReceivedMessageSize="2147483647" (The max value is Int32.MaxValue ) Or in Code: WSHttpBinding binding = new WSHttpBinding();

maxReceivedMessageSize and maxBufferSize in app.config

家住魔仙堡 提交于 2019-11-27 17:06:45
问题 How to increase maxReceivedMessageSize and maxBufferSize parameters in app.config file to 2000000 before running the application. 回答1: You need to do that on your binding, but you'll need to do it on both Client and Server. Something like: <system.serviceModel> <bindings> <basicHttpBinding> <binding maxBufferSize="64000000" maxReceivedMessageSize="64000000" /> </basicHttpBinding> </bindings> </system.serviceModel> 回答2: You can do that in your app.config. like that: maxReceivedMessageSize=