Programmatically set WCF timeout in debug mode

I’m using WCF in communication between a server and client (both written in C#). In release-mode, the timouts should be set to ~20 seconds, but in debug mode I want to set them to a higher value so that I can debug/step in my code without the timeout occurring. I know that I can change … Read more

WCF Self signed certificate is not trusted on the client

I have a WCF service that is ONLY every used between two server machines. It will NEVER be used publicly. I was hoping I could use SSL with a self signed certificate for security. I created a certificate using IIS7, installed it on the client machine using IE and the MMC (Personal, TrustedRoot, Third-Party & … Read more

How to generate web service reference without INotifyPropertyChanged?

I am using Fody in a SilverLight project to auto-generate property dependencies. However, it doesn’t work if setters already contain a RaisePropertyChanged method call. A workaround could be to generate web service reference code without INotifyPropertyChanged and instead implement it in a partial method. How can I generate web service reference code without INotifyPropertyChanged? I … Read more

WCF service as a part of MVC application

I have a web application in MVC4. I’m going to host in on a shared hosting provider. I want to extend it with a WCF service for uploading files. (There will by a WPF desktop application that will allow users to upload files directly from their PCs.) I’d rather host it somehow “together” to avoid … Read more

Application Insights – No data for ‘process cpu’

I’m in the process of setting up app insights for a WCF project. The problem I’m having is I can’t seem to get it to report on the process cpu, available memory etc. The charts just say no data. I’ve got <Add Type=”Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.PerformanceCollectorModule, Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector”> Included in my applicationinsights.config file as I saw in another post … Read more

VS 2015 : Could not load file or assembly ‘System.Web.WebPages.Razor, Version=

I am running a solution which contains different projects. However, i am trying to run a project (class library) which contains wcf services using Visual Studio 2015 and framework 4.6 (on windows 8 OS, IIS Express). However it keeps showing this error in the browser: Error: I noticed that the calling assembly of Razor 2.0 … Read more

WCFclient operation only Async .Net core 2.0

I added wcf services end point in core 2.0 to connected services and then I try to use that but with client there is only functions which ended with ..async I don’t want to use …async.But there is no function without .async What is problem with this?What should I do? instead of using that … Read more