.NET     Console.WriteLine( "All Things .NET" );
.NET Nerd Blog Home
1.30.2006

 
Video Game Dev - in C#
Came across this link, thanks to the "Start Page" in the VS 2005 IDE. I usually have this turned off, since it just takes the IDE longer to load the browser, but on my home laptop, it's still on.

Anyway - there's an 11 part MSDN webcast series on game development, using C#.

Video Game Development: Learn to Write C# the Fun Way


 
Finding and Using User Controls in VS 2005
Joel at work had this issue today. How to LoadControl on an ASCX file that is in your project? Since the project deployment model is all new in VS 2005, the user controls are either not findable in the IDE (so no Intellisense), or not findable via LoadControl, since they are housed in the assemblies that have the unpredictable filenames.

Another problem that Paul pointed out is that User Controls that are in their own directory are not accessible from the aspx pages in the main directory. Presumably this is because of the new ASP.NET 2.0 compiler setup, where each directory is compiled into it's own assembly. So from the main project directory code-behinds, you can't reference the classes in another sub directory.

(A work around I came up with is to create the ASCX user control with no code-behind. It can then live in it's subdirectory and you can reference the properties, etc. on the user control class. Ugly that it has to be all code in the ascx file.)

ScottGu goes through a rather long walkthrough of how to accomplish this -- it's not pretty...

Building Re-Usable ASP.NET User Control and Page Libraries with VS 2005

Over at OdeToCode, K. Scott Allen shows a way to package ASCX controls for re-use using tweaks to the project file and using MSBUILD with ILMerge.
article here


1.13.2006

 
Dharma's Workflow Shell
Here is a very cool Windows Workflow Shell program. I'll have to find the session that Dharma is referring to here (where he uses the shell).

Makes use of the WorkflowCompiler class to build the workflow object on the fly from the XOML / XAML file. It even uses an anonymous delegate for the AssemblyResolve event that I recently discovered when looking at ASP.NET 2.0 resources. This event handler loads the workflow from the in-memory compiler results.

Very cool!!

He provides the source here
Less is More: Workflow Shell
(and if it's gone someday, my copy of it is here)


 
Don Box on SOAP, XML and .NET
This is a really old article, but found it today via Windows Workflow Foundation blogs, etc. It shows Don Box, back a few years, when he did the now infamous talk from a bathtub (SOAP...get it?)

Don Box on SOAP, XML and .NET
(ugh, that one now requires registration)

here is another pic of it, along with a video. great stuff Don!


1.11.2006

 
Unrecognized configuration section system.serviceModel
Trying WCF + WWF, and get the following error about web.config (specifically about the httpModules element)

Unrecognized configuration section system.serviceModel

To fix this, run
xws_reg /i


1.05.2006

 
Bad SSL Certs on Web Service Call
Back in the Verizon Online days (couple jobs ago), we had a C++ COM object that we used to make our HTTP POSTs to the server. In the QA environment, the SSL certs were bogus (server name did not match), so we had a registry key we would look at, and if set, set some parameters on the Win32 API call to ignore the bad cert.

Now at IK we're possibly running into the same thing. We get a .NET WebException when making the web service call. Here is a KB article that shows a work-around: how to accept a bad certificate.

Create a class that implements ICertificatePolicy. Return true from the CheckValidationResult( ) method. Pass this ICertificatePolicy to ServicePointManager.CertificatePolicy before making the web service call.

PRB: "System.Net.WebException. The Underlying Connection Was Closed. Could Not Establish Trust Relationship with Remote Server." Error Message When You Upgrade the .NET Framework


1.04.2006

 
Mark Schmidt's Abode : WFPad - Viewing/Editing Workflow's in XML
I'm starting to learn Microsoft Windows Workflow Foundation for our next client gig. Here is a very cool variation on XAMLPad, specifically for XAML as it relates to WWF.

Mark Schmidt's Abode : WFPad - Viewing/Editing Workflow's in XML

WFPAD WWF workflow



Powered by Blogger