>
 Thursday, July 27, 2006

There's a nice little diagnostic tool that ships with the SDK for .NET 3.0 - svctraceviewer.exe. You WILL need this tool. It is a great way to inspect messages when things are going as expected, you can see the service model trace to inspect components leading up to an exception, you can see the details leading up to a service fault, more than is shown in the inner exception at times.

Here's an example configuration for the service-side for June/July CTP:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <system.serviceModel>
        <services>
            ...            
        </services>

    <diagnostics performanceCounters="All" wmiProviderEnabled="true">
            <messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" maxMessagesToLog="100000"/>
        </diagnostics>

    </system.serviceModel>
    <system.diagnostics >
        <sharedListeners>
            <add name="sharedListener"
                 type="System.Diagnostics.XmlWriterTraceListener"
                 initializeData="c:\logs\servicetrace.svclog" />
        </sharedListeners>
        <sources>
            <source name="System.ServiceModel" switchValue="Verbose, ActivityTracing" >
                <listeners>
                    <add name="sharedListener" />
                </listeners>
            </source>
            <source name="System.ServiceModel.MessageLogging" switchValue="Verbose">
                <listeners>
                    <add name="sharedListener" />
                </listeners>
            </source>
        </sources>
    </system.diagnostics>
</configuration>

To view trace output launch svctraceviewer.exe and open the .svclog file. The Messages tab will take you directly to the actual messages that move between client and service, including full XML output (excluding binary data). The items in yellow are warnings, items in red are exceptions...where you can view details of the exception in the XML dump. Make sure you scroll all...the...way...down and look for the details of the exception...good stuff in there (or, bad stuff...I guess, if there is an exception).

 

7/27/2006 5:31 PM Indigo  | Comments [176]  |  View reactions  |  Trackback
 Friday, June 30, 2006

Martin Gudgin blogged about this last month...I just saw it, hilarious!

6/30/2006 8:08 PM Fun | Security  | Comments [152]  |  View reactions  |  Trackback
 Thursday, June 29, 2006

I just added the federation sample to this blog entry: http://www.dasblonde.net/default.aspx#a0de3e38e-a516-4a33-a85d-3027a505f7b8

CardSpace anyone?

 

6/29/2006 3:15 AM CardSpace | WCF  | Comments [143]  |  View reactions  |  Trackback
 Wednesday, June 28, 2006

For my web cast today I discussed...well...contracts! In the process I had the opportunity to update my contract chapter samples for my WCF book (the chapters are currently posted to www.thatindigogirl.com for your review, and I'll be updating the posted chapter content for Beta 2 in the next weeks).

The samples are:

Enjoy!

6/28/2006 8:12 PM Speaking/Events | WCF  | Comments [2]  |  View reactions  |  Trackback
 Tuesday, June 27, 2006

For my webcast today, I illustrated several layers of security features for ASP.NET with the following samples (some samples are extra beyond what we had time for in 1 hour):

Also see my Publications page for articles on this subject for The Server Side .NET

6/27/2006 9:27 PM ASP.NET | Security | Speaking/Events  | Comments [2]  |  View reactions  |  Trackback

For my webcast today, I illustrated custom HTTP modules and handlers with the following samples:

Also, look at my RSS for ASP.NET for other posts on similar subjects!

 

6/27/2006 4:44 PM ASP.NET | Speaking/Events  | Comments [7]  |  View reactions  |  Trackback
 Monday, June 26, 2006

I have 3 webcasts for MSDN coming up this week.

This Tuesday (tomorrow), two ASP.NET web casts:

MSDN Webcast: How ASP.NET 2.0 Processes Requests: Handlers, Modules and Other Objects Involved in the Round Trip (Level 200)

Tuesday, June 27, 2006
9:00 A.M.–10:00 A.M. Pacific Time

MSDN Architecture Webcast: ASP.NET Security Is More Than Just Credentials (Level 200)
Tuesday, June 27, 2006
12:00 P.M.–1:00 P.M. Pacific Time

This Wednesday morning bright and early:

MSDN Architecture Webcast: Understanding Windows Communication Foundation Contracts (Level 200)
Wednesday, June 28, 2006
8:00 A.M.–9:00 A.M. Pacific Time

These are FREE, so you don't want to miss out!

 

 

6/26/2006 6:02 PM ASP.NET | Speaking/Events | WCF  | Comments [2]  |  View reactions  |  Trackback

I did a session at Tech Ed on CardSpace (formerly known as InfoCard) that illustrated several ways to integrate CardSpace into your applications. For example you can:

  1. Use CardSpace to pass claims to a web application using the <object> tag or XHTML (IE 7).
  2. Use CardSpace to pass claims to a WCF web service using wsHttpBinding/IssuedToken credentials, or wsFederationHttpBinding and specifying a list of claims.
  3. Use CardSpace to pass claims to a WCF security token service (STS or token issuer) that in turn validates those claims and issues a token for the target WCF service. This involves specifying an alternate token issuer, and implies that that token issuer might trust the CardSpace claims to issue a proper SAML token for the target service.

I have samples for all three, and the delay in posting (sorry) is related to writing up instructions to make sure you are successful...while I was out of town last week.

UPDATED: 06/28/06 to add federation sample

InfoCardBrowser.zip (18.27 KB)

InfoCardWSHttpBinding2.zip (1.98 MB)

MediaServicesFederation.zip (2.07 MB)

Oh, I should also mention that I had lots of help from several product team members to get these samples working on the latest build on short notice - both on the WCF and CardSpace teams...these guys really rock! And you might want to head to Martin Gudgin's blog for more Q&A on the STS he let me use for the federation sample!

Let me know if you have any questions after reading the readme files!

6/26/2006 5:53 PM CardSpace | Speaking/Events | TechEd | WCF  | Comments [3]  |  View reactions  |  Trackback
 Monday, June 19, 2006

In this session at Tech Ed in Boston last week, I discussed how you can apply Enterprise Services (COM+) and MSMQ to build scalable applications pre-WCF. The sample code that I demonstrated is listed below. Don't forget also to look at my Publications page to get more background, specifically the articles I wrote for The Server Side on security and sandboxing which discuss many of the EnterpriseServices features used.

Enjoy!

 

6/19/2006 7:33 PM ASP.NET | Security | Speaking/Events | TechEd  | Comments [3]  |  View reactions  |  Trackback
 Saturday, June 17, 2006

Yes, at last, I am posting my code for my SDC conference sessions. I am quite sorry about this delay, but I have been travelling non-stop since the conference, and I had at least one million other deadlines upon me and Internet issues during the week following when I had promised to post. So, hopefully apology accepted...here is the code references for all 4 of my sessions!!!!

How ASP.NET 2.0 Processes Requests - Handlers, Modules, Caching, Session and other fun objects involved in the round-trip

  • HttpHandlers.zip
  • HttpHandlersVB.zip
  • If you get ASP.NET Pro magazine, I also wrote an article on this subject, which was reprinted with permission in the SDC magazine for this conference

ASP.NET Security - It's About More than Just Credentials

Applied ASP.NET 2.0 - Essentials for Building Professional Web Sites

Performance Tuning and Monitoring your ASP.NET Applications

6/17/2006 11:40 PM ASP.NET | Globalization | Security | Speaking/Events  | Comments [7]  |  View reactions  |  Trackback
    ON THIS PAGE
    SEARCH
    CATEGORIES
    ARCHIVES
    BLOGROLL

Designed by NUKEATION STUDIOS