UseDefaultWebProxy Functioning in WPF application - wcf

I have consumed a webservice in my wpf application. In app.config the settings in binding for the webservice has a property as UseDefaultWebProxy=true, Now my question is I want that the default proxy settings must be used from my default web browser say firefox, safari, etc but not from internet explorer(this is not default now).
Please suggest.

Related

Web Service Reference not working in Windows Service application

Mine is Windows Service project. But I've to use a web service in it which is working fine in Web application when I refer it.So I tried to add the web reference into my Windows Service project. It added fine. But the DISC file and wsdl file not being displayed. And also I was not able to use the webservice class reference in my application.
Any solution for accessing that web service in Windows Service app? Or I've to do anything else to make it work

Monitor keep alive setting between UI and service web app

Our MVC application communicates via WCF with a services web app (also WCF).
Both apps (MVC & Services) use basic http by default, but we want to prevent server affinity. I made a custom binding that resembles the basichttp, but with settings 'keepAliveEnabled = false'.
The application works as before, but I want to verify if the keep alive is set to false between the UI and services.
How can this be done ?
(WireShark, Fiddler ??)
I found a solution.
I checked this post on SO:
How to use Fiddler to monitor WCF service
and replaced the localhost DEV client setting to my full computer name and I can track all the UI outbound calls now.

Enable net.tcp protocol from Web.config

I have WCF service that has http and net.tcp endpoints. I have deployed the service to IIS 7.5 (Server 2008R2), everything is working good.
My question is this, is there a way to set enabled protocols for the IIS application through Web.config?? Right now I have to go to the Application in IIS and manually change the Advanced settings and add net.tcp to the list of available protocols before the service can be activated, see pic for the screenshot.
No, this setting isn't available via web.config. It can be set either via the IIS Manager as you're doing, or via the AppCmd.exe command-line utility, as in the example below:
%windir%\system32\inetsrv\appcmd.exe set app "Default Web Site/FirstWcfHost" /enabledProtocols:http,net.tcp
No, this is not a web-scoped setting. It is web application (app pool) scoped one, so it is in the applicationHost.config file.

Using a console application to host WCF endpoints that expose asp.net ProfileService, ProfileService and RoleService

I've got an MVC web application that is used as an interface to a Console based app that exposes a bunch of ServiceHost/s using the net.pipe protocol.
I would like to use the asp.net membership/role/profile provider to manage my users and their roles and profile information (Inside the Console Application). I've done this in quite a few apps, but normally I reference these providers directly from the web application itself.
This is a good walk-through on doing pretty much what I would like, except I don't want to host the WCF service endpoints in IIS, but inside my console app - which will eventually become a windows service. When I try and host the ServiceHost through my console application I get the following error:
This service requires ASP.NET compatibility and must be hosted in IIS.
Either host the service in IIS with ASP.NET compatibility turned on in
web.config or set the
AspNetCompatibilityRequirementsAttribute.AspNetCompatibilityRequirementsMode
property to a value other than Required.
Now it seems that I won't be able to set that property to anything other than Required.
I've tried another route which is using the wrapper class/interface defined here for my authentication service, which I managed to get wired into in my MVC app without too much trouble, but this doesn't cover my Authorisation (using roles) or profile needs.
Has anyone got a solution to this, I can't be the only one trying to do this? I'm not

Silverlight webservice

Can webservices be accessed by Silverlight 3? On VisualStudio, a Silverlight project doesn't allow me to add a "web reference" but only a "web service reference" that is for WCF and not "normal" webservices.
Any help?
Thanks
Sure you can. In your web project, add a new asmx webservice and add whatever functions you want. Then build your web project.
Next, go to your silverlight project, right click on Service References, select Add Service reference. If you then hit the Discover button in the dialog that pops up, it should discover your new web service. If it doesn't, then you can manually enter the url to it - if you have Cassini running (press F5 in your web project, then close the browser window once launched, Cassini will continue to run in the background) just enter http://localhost:[port]/MyWebService.asmx as the address. The [port] is whatever port you have Cassini running on for this particular project).
Also don't forget to kee the cross domain limitations and work arounds in scope when considering any implementation:
http://timheuer.com/blog/archive/2008/04/06/silverlight-cross-domain-policy-file-snippet-intellisense.aspx
Also there is a great MIX video on this:
Consuming Web Services in Microsoft Silverlight 3
Description: Come hear how to work with external REST, SOAP, and Windows Communication Foundation (WCF) services from Silverlight. Learn how to securely and efficiently communicate with services using Binary XML, debug services with improved Faults support, and implement server-to-client "push" using the new Add Service Reference for Duplex functionality.
http://videos.visitmix.com/MIX09/T42F