Connect with me
Search
Tags
Twitter Feed
Navigation
Thursday
Jun032010

Adding custom http header to all WCF requests

I needed to add a customer http header to the outgoing request of a web service call (for authentication purposes). With old web services it was easy to do this, but with WCF it’s a bit tricker. The good thing is that WCF is *very* extensible.

To do this, we need to create a custom WCF behavior and message inspector.

The solution file is available in the resources section of the post.

Click to read more ...

Wednesday
May052010

ALM Conference Photos

etter late then never. Here are some of the shots of the ALM Conference. Check out the ALM Conference Gallery for more photos.

  

Click to read more ...

Wednesday
May052010

401.1 Unauthorized - IIS & WCF using custom host headers and host entry

I ran into a bit of a issue today at a client with Windows Authentication and WCF services (it seems like a very common problem) where I was using a host header in IIS to test a web application I was working on. To do this, I added an entry to the hosts file in %windir%\system32\drivers\etc to map the custom host name (e.g. testapp.com) to 127.0.0.1

Accessing the web application worked fine, but trying to access the WCF services hosted under IIS (also using Windows Authentication) kept prompting the login dialog and then eventually failing with the dreaded 401.1 - Unauthorized

Adrian Foyn pointed me to a registry hack to enable loopbacks by setting the registry key:

Click to read more ...

Wednesday
Apr282010

Client side table sorting and filtering with jQuery tablesorter

Ran into an awesome jQuery plugin today while trying to find a quick way to add filtering and sorting to a table on the client machine rather than on the server side. It’s called TableSorter.

You can easily enable client side filtering, sorting and paging with a few lines of javascript and a multitude of options to customize it to your needs.

Here’s a demo. You can click on the headers to sort or type into the textbox to filter by FirstName or LastName.

Search:

Last Name First Name Owing
King Justin $22.00
Liu John $35.00
Truong Michelle $100.00
Gfader Peter $50.00

Click to read more ...

Monday
Apr192010

Performance Point Server Error - "The Unattended Service Account"...

I’ve been getting into a lot of different technologies recently and one of those was SharePoint 2010 and PerformancePoint Services.

While trying to get a demo up and running for Adam Cogan, I ran into the following error in Dashboard Designer when trying to create a new data source.

The data source cannot be used because PerformancePoint Services is not configured correctly. Additional details have been logged for your administrator

The data source cannot be used because PerformancePoint Services is not configured correctly. Additional details have been logged for your administrator

 

Trying to find the cause of this I ventured into: Central Admin | Manage Service Applications | PerformancePoint Service Application | PerformancePoint Service Application Settings and when trying to specify the unattended service account I got the following error:

The Unattended Service Account cannot be set for the service application. The Secure Store Service key might not have been generated or properly refreshed after the service was provisioned.

Click to read more ...