Geeks With Blogs
Sean's Blog My Development Blog April 2008 Entries
Random Exceptions
I was recently working on an application that was known for throwing random exceptions at various times for no apparent reason. Frustrated, I wrote this snippet of code to ease the tension. I just thought I'd share it with you. Program.cs using System; using System.Collections.Generic; namespace RandomConsoleTests { class RandomConsoleTests { static void Main(string[] args) { ThrowRandomException(); } public static void ThrowRandomException() { throw ExceptionFactory.CreateRand... } } ......

Posted On Wednesday, April 23, 2008 2:50 PM

Commerce Server Starter Site on Non-Standard Port
If you install the Commerce Server starter site on a port other than port 80, you will run into a couple of issues. The problem is that Microsoft coded the site to drop the port number. To correct the problem, open the App_Code\SiteContext.cs file and comment out the following line of code (it's on line 247, for me): builder.Port = -1; // Removes the port setting from the site. Add the following line of code in its place (note, update port numbers to match your sites configuration): builder.Port ......

Posted On Thursday, April 3, 2008 12:13 PM

Copyright © Sean Fao | Powered by: