Setup Identity and Access Tools for Visual Studio 2012

There are a couple of options for installing the tools that are mentioned here.  Here are the steps to installing Identity and Access Tools from the Extension Manager in Visual Studio: Start Visual Studio 2012. From the menu select TOOLS | Extensions and Updates. . . Click the Online extensions node in the tree view…

6

Which WCF Binding Is Best?

[Updated – 10/3/2012: An astute reader pointed out that the sample below will produce some inconsistent results based on the order of the bindings being compared.  This is because of things like JIT compilation, internal caching, etc.  As a quick fix, I added two lines of code to the CompareBindings method to “warm up” the binding elements that will…

3

Using a Server Certificate to Protect Web.Config

Using ASP.NET’s protected configuration feature is recommended when your Web.Config file contains sensitive information.  The .NET Framework gives you two protected configuration providers, DpapiProtectedConfigurationProvider and RsaProtectedConfigurationProvider.  Depending on your application requirements, you can use either of these to get the job done. You can also create your own protected configuration provider and there is a…

1

Monitoring Client-Outbound WCF Calls

Recently a colleague asked me if I knew of a way to monitor outbound WCF calls for an application.  He just wanted to be able to see the number of outbound calls an application was making.  Performance Monitor normally provides the answer to these kinds of questions.  Unfortunately, the performance counters for WCF are primarily…

0

Why scriptLocation may not work when pointing to a proxy script file in your application config file.

Consider this scenario: You have a .NET application that issues HttpWebRequests to a remote server.  You deploy this application to an environment that requires proxy servers be configured using a proxy script file (WPAD / PAC).  The solution is pretty simple.  In your app.config, you can add this configuration:   <system.net>     <defaultProxy useDefaultCredentials="true">      …

0

Optimizing Intermediary Services for throughput

I recently had the privilege of working with a couple of engineers (Naveed Zaheer and Manoj Kumar) in an internal lab setting to see how much throughput we could achieve through the Managed Services Engine (MSE) and a downstream WCF service hosted in IIS. This post highlights some configuration settings that were applied during our…

1

Installing Windows Performance Toolkit (WPT)

So, you want to install the Windows Performance Toolkit?  This is located in the Windows SDK which you can download here.  If you’re like me, you may not want to blindly install the entire SDK.  The installer options that provide the WPT installers are the ‘Win32 Development Tools’ and/or ‘.NET Development Tools’ option under ‘Developer…

1

Self hosting an ADO.NET data service

All the samples I’ve seen for ADO.NET Data Services show hosting the service in IIS.  This is a natural choice, especially considering the rich hosting environment IIS provides and the tooling support provided by Visual Studio.  However, it is not the only option for hosting ADO.NET Data Services.  These services are just WCF services and…

0

ASP.NET Web Services to WCF services: Answering the question – Why?

Windows Communication Foundation (WCF) is the platform for building distributed applications.  Developers are usually eager to adopt the latest of any technology because, well, it’s the latest.  There’s an element of coolness associated with building systems using the latest and greatest technology.  Management, on the other hand, often takes a different look at technology to…

0

WCF Instancing, Concurrency, and Throttling – Part 3

In part 1 and 2, I talked about instancing and concurrency. In this post, the 3rd and final post on this subject, I’m going to show an example of how you can use throttling to achieve optimal throughput for a service. But first… What is throttling? Throttling is a way for you to limit (“throttle”)…

0