Wednesday, July 07, 2004

nprof: The .NET profiler application and API
ASP.NET.4GuysFromRolla.com: Nprof and ACT, Your Performance Assistants
Integration Patterns
explains how patterns were used to design and build an integration architecture within a representative customer scenario. The guide includes a catalog of 18 common integration patterns including implementations that use the Microsoft platform.

Analysing .NET Apps for Performance using NProf
MSDN Webcasts Doctrine: "I was looking at channel 9 and realized that I don't have our MSDN Doctrine published. So here it is:
Anyone can attend for free, anytime, from anywhere.
We publish live technical webcasts for public consumption by those interested in developer and software architectural webcast content.
We will not charge for this content. The idea is that you can attend these webcasts for free and learn.
We take questions from our live audience, and do our best to answer them.
We focus on less slides and will show our attendees how the technology works (app sharing, desktop sharing,etc).
We do it more than once daily; sometimes even during lunch and especially after lunch (PST time).
No B.S. We don't push out marketing type content (even though we're in the Microsoft business marketing organization). If someone tries, we take them out back and beat the $%@) out of them.
We do this live and then record it so those who have day jobs can watch them as well as time permits.
We only get the serious subject matter experts to present; where ever they are in the world.
We focus our content so that's it clearly Introductory - Level 100 (you do need to know some code), Intermediate - Level 200 (you can code), Experienced - Level 300( you've been doing code for awhile) , and Advanced - Level 400 (you da man!).
Finally, we love developers!
Regards,
George, MSDN Webcasts
"
Design Guidelines for Class Library Developers: ".NET Framework General Reference - Design Guidelines for Class Library Developers"
devAdvantage 2.0: More C# Rules, More .NET Features: "devAdvantage 1.0, a tool that automates C# code reviews and fixes problems the problems found, was released in October of 2003. The 1.0 release provides rules targeted at programmers that develop multi-threaded .NET applications. The devAdvantage 2.0 release now begins to broaden the functionality to every day tasks that all C# developers perform by delivering a collection of rules for naming conventions. "
A .NET Developer's Guide to Windows Security
Table of contents:

Front Matter (TODO)
Part 1: The Big Picture
Item 1: What is secure code?
Item 2: What is a countermeasure?
Item 3: What is threat modeling?
Item 4: What is the principle of least privilege?
Item 5: What is the principle of defense in depth?
Item 6: What is authentication?
Item 7: What is a luring attack?
Item 8: What is a non privileged user?
Item 9: How to develop code as a non-admin
Item 10: How to enable auditing
Item 11: How to audit access to files

Part 2: Security Context
Item 12: What is a security principal?
Item 13: What is a SID?
Item 14: How to program SIDs
Item 15: What is security context?
Item 16: What is a token?
Item 17: What is a logon session?
Item 18: What is a window station?
Item 19: What is a user profile?
Item 20: What is a group?
Item 21: What is a privilege?
Item 22: How to use a privilege
Item 23: How to grant or revoke privileges via security policy
Item 24: What is WindowsIdentity and WindowsPrincipal?
Item 25: How to create a WindowsPrincipal given a token
Item 26: How to get a token for a user
Item 27: What is a daemon?
Item 28: How to choose an identity for a daemon
Item 29: How to display a user interface from a daemon
Item 30: How to run a program as another user
Item 31: What is impersonation?
Item 32: How to impersonate a user given her token
Item 33: What is Thread.CurrentPrincipal?
Item 34: How to track client identity using Thread.CurrentPrincipal
Item 35: What is a null session?
Item 36: What is a guest logon?
Item 37: How to deal with unauthenticated clients

Part 3: Access Control
Item 38: What is role based security?
Item 39: What is ACL based security?
Item 40: What is discretionary access control?
Item 41: What is ownership?
Item 42: What is a security descriptor?
Item 43: What is an access control list?
Item 44: What is a permission?
Item 45: What is ACL inheritance?
Item 46: How to take ownership of an object
Item 47: How to program ACLs
Item 48: How to persist a security descriptor
Item 49: What is Authorization Manager?

Part 4: COM(+)
Item 50: What is the COM(+) authentication level?
Item 51: What is the COM(+) impersonation level?
Item 52: What is CoInitializeSecurity?
Item 53: How to configure security for a COM(+) client
Item 54: How to configure the authentication and impersonation level for a COM+ application
Item 55: How to configure the authentication and impersonation level for an ASP.NET application
Item 56: How to implement role based security for a managed COM+ application
Item 57: How to configure process identity for a COM(+) server app

Part 5: Network Security
Item 58: What is CIA?
Item 59: What is Kerberos?
Item 60: What is a service principal name (SPN)?
Item 61: How to use service principal names
Item 62: What is delegation?
Item 63: What is protocol transition?
Item 64: How to configure delegation via security policy
Item 65: What is SSPI?
Item 66: How to add CIA to a socket-based app using SSPI
Item 67: How to add CIA to .NET Remoting using SSPI
Item 68: What is IPSEC?
Item 69: How to use IPSEC to protect your network

Part 6: Misc
Item 70: How to store secrets on a machine
Item 71: How to prompt for a password
Item 72: How to programmatically lock the console
Item 73: How to programatically log off or reboot the machine
Item 74: What is group policy?
Item 75: How to deploy software securely via group policy
A .NET Developer's Guide to Windows Security, by Keith Brown:
http://www.pluralsight.com/keith/book/html/book.html
"I originally wanted to call this book 'Essential .NET Security'. But I've decided to narrow my scope a bit to fill a niche that other books on .NET security either completely ignore, or usually get quite wrong. That is, what key things should a .NET programmer know about Windows security - the operating system that will be hosting the vast majority of all .NET applications for the forseeable future. The .NET framework doesn't do a very good job abstracting Windows security at the moment, so the book will come with a library of code that helps make Windows security easier to use from the .NET Framework (even with Whidbey)."
New Community sites go live: "The team has been working to release a few new community pages related to different products, if you haven't seen them please be sure to check out the following

At Home ; At Work; Digital Photography; Games for Windows; Home Networking;
Instant Messaging; Media Center; Tablet PC; New Windows XP User;
Printing, Imaging, and Fax; Windows Media Player and Windows Movie Maker"
.NET Backwards Breaking Changes from version 1.1 to 2.0

Just Another BizTalk 2004 B***
Martijn has a bunch of interesting BizTalk things on his blog including a modification to the file adapter sample to support regex.

Wednesday, June 30, 2004

Sax.net and Fun with JLCA 2.0
...
With literally a handful of keystrokes I was able to convert a significant amount of java language code to C#, leaving me with the more interesting points of the conversion and getting rid of the monotony for me. I still have my anal-retentive tasks to perform, such as upgrading the comments to work with VS.NET's code comment builder (and Roeder's Commenter as well). But the JLCA took a large amount of that pain away from me quickly.
On Writing

http://pluralsight.com/samples.aspx?category=aspdotnet
Sample asynchronous handler implementation in ASP.NET 1.x
Fritz Onion
Efficient Role-Based Authorization Sample
Fritz Onion
Bar graph control with designer
Fritz Onion
Dog control (designer integration example)
Fritz Onion
Using IIS/ASP.NET to Host .NET Remoting Servers
Mike Woodring
Logging HTTP Module
Mike Woodring

http://pluralsight.com/books/essentialasp.net/
Essential ASP.NET with Examples in C#
Don Box's Spoutlet
Vil v1.1 released - has features requested by TSS.NET readers!
benjaminm's blog - BOF001: James Newkirk on Integrating Unit Testing into the Software Development Lifecycle.
Getting started on XSD

XSD Schema Tricks and Tips by Kurt Cagle - http://www.vbxml.com/xml/articles/xsd/default.asp
XML Schema Part 0:Primer - http://www.w3.org/TR/xmlschema-0/

You must have a different version of Visual Studio .NET than me (2003).

In my version, I can bring up the properties window (F4) to set minOccurs and maxOccurs.

I can also open any XML file, right click on it and choose "Create Schema".

I also get little red squigglies when my test XML file doesn't match its assigned schema.

I like XML Spy as much as anyone, but I don't think its fair to say something "sucks big time" before you know all the facts.
Dynamic Search Conditions in T-SQL
Long article but great one by Erland Sommarskog on searching data with many criterias.
I prefer myself stored procedure, but there you can find some good alternatives.

Another Ambient Orb used for continuous integration status
Here's a little more about our build process. When our CruiseControl.NET server kicks off a build it does the following:

Build using NAnt*
Get files from SourceSafe using NAntContrib
Unit test using NUnit
Coverage analysis of unit tests using NCover*
Generate MSDN style documentation using NDoc
Generate a missing documentation tag report (homegrown script that reports the tags in the NDoc documentation)*
Perform static analysis using FxCop
Create Windows Installers using WiX
Generate build manifest report (homegrown script that lists all files and version numbers that are included in the distribution)*
Finally it indicates to the Orb whether all of the above succeeded or not.
* We have extended CruiseControl.NET's web to include pretty reports for these items.