Archives

Archives / 2010
  • WCF Debugging Tip

    WCF Debugging from Silverlight client-side: WebRequest.RegisterPrefix("http://", WebRequestCreator.ClientHttp);Also, turn on debugging in the WCF service Web.config. You'll get detailed inner exception information. In the <serviceBehaviors> region:  <serviceDebug includeExceptionDetailInFaults="true" />   Continue reading...

  • Active Directory Federation Services v2

    ADFS is based on Web Services architecture (WS-* specifications) and conforms to industry standards and protocols. This release supports Azure and would be a great choice for enterprises using AD as a credential store on the local domain who want to migrate to the cloud. Applications hosted on local IIS7 servers as well as in the Azure cloud can take advantage of single sign on over the extranet for the duration of the user's browser session. See MSDN for developing federation-aware applications. Continue reading...

  • IIS 7 Errors

    On my sandbox (WinOS 2008) I installed Web Platform Installer 2.0. Then through the PI I installed Frameworks and Runtime (.NET Framework 4.0), IIS 7, and Web Deploy Tool 1.1. I took a vanilla ASP.NET app from the new VS2010 project template and deployed to IIS 7 using the new packaging tools. Depending upon whether the app pool was integrated pipeline or classic I got these errors: Continue reading...

  • Lambda Expressions with NHibernate.Linq

    In the last two posts below I talked about creating a templated DataService class and also mused about whether UI data queries really were a cross-cutting concern. I'm agnostic about the question really; however, I do have one practical concern. I don't want to expose methods that take any old HQL query that the client sends my way. I'd like to have a controlled way of extending database queries down to the UI. Continue reading...

  • UI Data Query A Cross Cutting Concern?

    Rehein makes the interesting argument that there is no clean separation between the presentation, business, and data access layer. Instead, UI concerns often known only at runtime like paging, filtering, sorting, and so on make data querying a cross cutting concern. He therefore, recommends we stop creating UI interfaces like: Continue reading...

  • Refactor to DataService<T>

    In the post below on NHibernate 101 I said not to plumb data access code in the Operation Contract implementation. Now I'd like to refactor and get that out of there. Let's think about it a bit first. Do I really want to create a data layer class called "InstrumentService" with the CRUD in there? I could. But since this is a concert music application, I know I'm going to have several lookup tables in the system. In addition to musical instruments there will be musical genres, catalogs, recording labels, ensemble types, and so on and on. Continue reading...