devenv.exe.config

While trying to compile a demo Silverlight application, I ran into this build error: System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by […]

Samsung Focus Windows Phone 7 (WP7) using AT&T

My Samsung Focus came in the mail today to replace the old iPhone 3G I was trying to use.  I say trying because with each OS release my old iPhone would get slower and slower.  While the iPhone 4 looks like an improvement over the 3G (click here for the apple comparison), I like the […]

Installing the latest Zune 4.0 Software on Windows Server 2008

Step 1: Download the latest Zune software from http://www.zune.net/en-US/products/software/download/default.htm (which should be the single file ZuneSetupPkg.exe). If you just run ZuneSetupPkg.exe you will get this lovely message: I can only assume Windows Server 2008 is not supported to save on QA time yet the software is running fine for me. Step 2: Start-up a cmd.exe […]

Wise Quotation

“Knowing is not enough; we must apply; Willing is not enough; we must do.” — Johann Goethe (1749-1832)

Ctrl+Shift+ESC = Windows Task Manager

The build-in hot key combo to pull up Windows Task Manager is Ctrl+Shift+Esc which appears to have been in Windows since XP (or earlier).  And all this time I’ve been right-clicking on the task bar.

Never forget the primary key (PK) on a table!

Want to kill an hour?  Forget to include a primary key constraint on a SQL table and use the Visual Studio auto-generated dataset. You will get this error when issuing the Update() command on an adapter: “Update requires a valid UpdateCommand when passed DataRow collection with modified rows.” If you look at the code in […]

IIS 7 / WCF / .Net 4 configuration update

To make sure IIS 7 is setup to work with the latest WCF and .Net 4 framework, use these two utilities: aspnet_regiis.exe and ServiceModelReg.exe. On an x64 machines, both of these utilities can be found in the folder: C:\Windows\Microsoft.NET\Framework64\v4.0.30319 From a command prompt launched with “Run as administrator” rights run aspnet_regiis –i –enable Per MSDN, […]

DebuggerDisplayAttribute or ToString() to help debugging

[DebuggerDisplay("Customer={CustomerName} Phone={CustomerPhone}")] class WEOTestClass { public WEOTestClass(string _name, string _phone) { CustomerName = _name; CustomerPhone = _phone; } public string CustomerName { get; set; } public string CustomerPhone { get; set; } public override string ToString() { return( "Customer: " + CustomerName + " Phone: " + CustomerPhone ); } } For viewing classes when […]