>
 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
 Friday, May 12, 2006

I just got word about a special event happening here in San Diego on May 20th...just for Mobile developers...and my good buddy Nick Landry will be here too!!! Since we don't have much in the way of Mobility training in the area, and the best of the best are coming to town, I thought I should spread the word! Here's the link! Only $49!

https://www.123signup.com/servlet/SignUpMember?PG=1522574182300&P=1522574191153930200&Info

 

5/12/2006 6:44 AM Speaking/Events  | Comments [2]  |  View reactions  |  Trackback
 Saturday, May 06, 2006

I presented a few new talks in Nice, France a week ago, some of which were repeats of my talks at Dev Connections Orlando which you can find here:

http://www.dasblonde.net/PermaLink,guid,2a996943-5bd3-48c4-94e9-97368c00222d.aspx

But, there were two new talks, one on HTTP handlers, which I just wrote an article for my ASP.NET Pro column. The column isn't available online but was provided with conference materials. The code can be found here:

http://www.dasblonde.net/downloads/Articles/HttpHandlers.zip

http://www.dasblonde.net/downloads/Articles/HttpHandlersVB.zip

5/6/2006 7:58 PM ASP.NET | DevConnections | Speaking/Events  | Comments [1]  |  View reactions  |  Trackback
 Friday, April 28, 2006

I recently updated my PhotoGallery sample code that illustrates many techniques including:

  • The use of profiles that store preferred theme and culture
  • Dynamic theme selection at runtime based on profile settings
  • The use of ASP.NET 2.0 localization features
  • Setting the request thread's culture dynamically based on profile settings
  • Database localization (table selection by culture)
  • Caching by culture and theme
  • Workaround for retrieving profile information for custom caching (GetVaryByCustomString())

The sample update is at this link: http://www.dasblonde.net/downloads/VS2005/Globalization/GalleryDemo20.zip

These features were always in the sample, but I came up with some improvements for caching and profiles, and I updated the sample so that all pages cache appropriately. I also created a full SQL script that would create the database and insert records, so that you no longer have to restore a full databas to create those records. Otherwise the sample is much the same. Enjoy!

4/28/2006 7:04 PM ASP.NET | Globalization  | Comments [2]  |  View reactions  |  Trackback
 Monday, April 10, 2006

Yet another awesome Dev Connections conference has come and gone, in Orlando last week...and if you missed out, make sure you hit the next one in Las Vegas later this year (www.devconnections.com).

For those who attended my sessions this past week, you will be looking for the code I'm sure, and here is all the magic, listed by session:

WCF Tutorial: WCFTutorialCode.zip
Designing WCF Services: DesigningWCFServices.zip 
Patterns in ClickOnce Deployments: listed here in my previous blog entry http://www.dasblonde.net/PermaLink,guid,aa492057-3a39-4ab4-87c4-5adb36d3d41f.aspx
ASP.NET 2.0 Essentials: LookandFeel.zip and GalleryDemo20.zip
ASP.NET 2.0 Security: ASPNETSandboxing20.zip

4/10/2006 4:27 PM  | Comments [28]  |  View reactions  |  Trackback
 Monday, March 20, 2006

Updated 04/09/06

See the previous few entries with code for my interoperability tutorial, and web services tutorial. Collectively they include the code for this session. Thanks!

 

UPDATED: 3/27/06

At last, here are the links to our interop code from the tutorial at SD West. For those that didn't attend, we covered the following:

Please enjoy!

 

3/20/2006 9:20 AM Indigo | Interoperability | Speaking/Events | WebLogic  | Comments [16]  |  View reactions  |  Trackback

For all those who attended my ClickOnce talks at SD West, I have posted the code to this previous blog entry: http://www.dasblonde.net/PermaLink,guid,aa492057-3a39-4ab4-87c4-5adb36d3d41f.aspx

The talks I gave where as follows:

  • ClickOnce Deployment and Versioning Practices
  • Advanced Aspects of ClickOnce Deployments
  • Data and the Smart Client

Cheers!

3/20/2006 9:12 AM ClickOnce | Speaking/Events  | Comments [0]  |  View reactions  |  Trackback

I'm posting references here to the code samples from several tutorials I just completed at SD West in Santa Clara.

  1. Introduction to Web Services (03/13/06) - Christian Gross and I once again joined forces to deliver a half-day tutorial introducing web services. Christian has posted his materials here: http://www.devspace.com/~cgross/sources/2006SDPreConJavaWS.zip and my introduction content can be found here: http://www.dasblonde.net/PermaLink,guid,c56682f0-8351-4f66-9a3a-2015d5a11a66.aspx, and the WCF content will be posted with my "Making Sense of All These Crazy Web Services Standards" post, coming shortly
  2. .NET Web Services (03/13/06) - I delivered a half-day focused 100% on .NET web services (ASMX) for the ASP.NET 2.0 platform. It included some WSE 3.0 introduction as well. The code samples for this can also be found here: http://www.dasblonde.net/PermaLink,guid,c56682f0-8351-4f66-9a3a-2015d5a11a66.aspx

Thanks very much to those that attended our tutorials...I hope you enjoyed them as much as we did :)

 

3/20/2006 8:41 AM Speaking/Events | Web Services  | Comments [2]  |  View reactions  |  Trackback

Here are some ASP.NET 2.0 samples focusing on the fundamentals of ASMX services. Inside the zip you'll find samples for the following:

  • Basics
  • Encoding
  • Serialization
  • IXmlSerializable
  • Faults
  • Headers
  • Session state
  • Asynchronous proxies
  • WSE 3.0 simple example

Cheers!

WebServicesSamples.zip (425.52 KB)
3/20/2006 8:28 AM Web Services  | Comments [6]  |  View reactions  |  Trackback

I have zipped up a collection of ClickOnce samples for your enjoyment. You may find a few of these samples interesting since they touch on some of the practical uses for ClickOnce. Here's the overview of the individual samples you'll find in the zip:

  • ClickOnceContext - shows you how to detect a ClickOnce application from one that is not, along with other important states such as IsNetworkDeployed, etc.
  • ClickOnceFirstRun - includes a utility for detecting first run ever versus first run since last update
  • ClickOnceDataFiles - using the data directory for local user storage
  • ClickOnceIsolatedStorage - using isolated storage for local user storage
  • ClickOnceDeployGAC - shows you how to use a custom setup project (MSI) that deploys a GAC dependency for a ClickOnce application, as a bootstrapped MSI
  • ClickOnceOnlineDetection - includes a utility for detecting when the application is deployed remotely, running as clickonce, and online
  • ClickOnceMsmq - a WCF service with netMsmqBinding provides a reliable message queue to send transactions to a service even if the client is offline
  • ClickOnceOnlineService - illustrates a factory pattern to use a WCF service used for connected clients, local data directory used for offline clients
  • ClickOnceUtils - utilities used for several of these samples
  • LocalizedFileGroups - sample illustrates a globalized application that uses download file groups to initiate download of required files in demand
  • ManualCheckForUpdates - illustrates manually detecting updates

I have another sample for deploying a database script, that I am adding some things to for an upcoming conference, and will post here when I have completed the changes.

Enjoy!

ClickOnceSamples.zip (1.41 MB)
3/20/2006 8:10 AM ClickOnce  | Comments [2]  |  View reactions  |  Trackback
 Wednesday, March 08, 2006

A few people asked me for this, so here you go! Feburary CTP links, and order of installation are:

3/8/2006 6:34 AM Indigo  | Comments [3]  |  View reactions  |  Trackback
 Sunday, February 19, 2006

After rebuilding my machine a few weeks ago, once again I find myself running into old problems and trying to remember how to repair them. This time, generating keys to strongly name my asesmblies through the Signing tab in Visual Studio 2005. I thought I would share it this time in case others have seen this problem...and struggled with it...

The Scenario:

For a Windows client application, open the Properties for the project, navigate to the Signing tab, check Sign the assembly and create a new key. In the Create Strong Name Key dialog, provide a new key name, provide a password, and click "OK".

The Problem:

An error message is presented: Create strong name key the operation could not be completed. Access is denied.

The problem repeats itself when I tried to use the strong name utility (sn.exe), with this error: Failed to generate strong name key pair. Access is denied.

The Solution:

I had to give my user account access to the key container in C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys. It turns out, even administrator rights were disabled on my machine! I am not sure if this was the default installation (I rebuilt the machine a few weeks ago) or if this is modified when I install WinFX, or if when I granted ASP.NET and NETWORK SERVICE access it somehow lost the inherited permissions that were granted when I installed the OS. In any case, at least it seems predictable, you need access to the key store in order to generate keys, makes sense!

How does it work?

Each container created using sn.exe -i is located in the MachineKeys directory (unless you specify elsewhere). The default key container that is used by sn.exe is also in that location.

In the event you reset your key container to a new one, and forget where it is...you can reset the key container for the strong name utility using sn.exe -c. So, if the account access fix doesn't work, you may be using an alternate key store so a reset may be in order.

I googled this topic a bit before writing this blog, and was surprised that very little has been written on this subject for a solution...furthermore...many people actually rebuilt their machines to solve the problem!!!! I hope this blog entry prevents a few more of those!!!

2/19/2006 7:45 PM .NET | ClickOnce  | Comments [13]  |  View reactions  |  Trackback
    ON THIS PAGE
    SEARCH
    CATEGORIES
    ARCHIVES
    BLOGROLL

Designed by NUKEATION STUDIOS