-
“Resource not found for the segment …” Azure Exception
Using table storage within the Azure platform, a simple query was throwing an exception if the table entry was not found.
MyDataContext dataCtx = new MyDataContext( acctInfo );
var q = from entity in dataCtx.EmailAddresses
where entity.PartitionKey == organizationID && entity.RowKey == address
[...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secondstanza.com&blog=2494489&post=183&subd=secondstanza&ref=&feed=1" />
-
Silverlight Color Picker Control
I’m not sure why a color picker was not included in Silverlight since it seems like such a common control. However, I needed one so I took a look at my options. Plenty of examples exist so I decided to take the work started by Page Brooks (here, here, and here) and incorporate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secondstanza.com&blog=2494489&post=171&subd=secondstanza&ref=&feed=1" />
-
Silverlight Modal Popup
The Popup control in Silverlight is not, as you might think, like a modal dialog box where other portions of the application are disabled while the dialog is displayed. It is more like an overlay where the contents of the Popup control are displayed on top of everything else in the control. However, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secondstanza.com&blog=2494489&post=165&subd=secondstanza&ref=&feed=1" />
-
Resizing a Silverlight Control within the Browser
A common user interface technique in a web page is to expand the contents of the page to the size of the browser window. There are solutions for doing this in both CSS or Javascript. A Silverlight control may also be resized in this way and since a Silverlight control can access the Browser’s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secondstanza.com&blog=2494489&post=160&subd=secondstanza&ref=&feed=1" />
-
Second Stanza Source Code Repository
I’ve created a project on CodePlex to store the source code I’ve publish within this blog. The project is located at secondstanza.codeplex.com. The first set of source code is a set of useful Silverlight controls. Enjoy!
Posted in .NET Development, Silverlight <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secondstanza.com&blog=2494489&post=157&subd=secondstanza&ref=&feed=1" />
-
Detecting Design Mode in Silverlight Controls
Here are a couple of links about the issues with detecting when a control is design mode (within Expression Blend or Visual Studio):
http://blogs.sqlxml.org/bryantlikes/archive/2009/02/25/detecting-design-mode-in-silverlight.aspx
http://blogs.msdn.com/delay/archive/2009/02/26/designerproperties-getisindesignmode-forrealz-how-to-reliably-detect-silverlight-design-mode-in-blend-and-visual-studio.aspx
Posted in Silverlight Tagged: Silverlight Custom Controls <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secondstanza.com&blog=2494489&post=153&subd=secondstanza&ref=&feed=1" />
-
SetPrincipalPolicy in Unit Tests
A while back, I noticed that this test always fails in Visual Studio 2008 w/SP1:
[TestClass]
public static class TestInfo
{
[AssemblyInitialize]
public static void InitializeTesting( TestContext testContext )
{
AppDomain.CurrentDomain.SetPrincipalPolicy(
[...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secondstanza.com&blog=2494489&post=144&subd=secondstanza&ref=&feed=1" />
-
Conflict Between TypeMock and Reporting
When using a LocalReport object within a unit test where TypeMock Isolator was running, I got the error:
Microsoft.Reporting.WinForms.LocalProcessingException : An error occurred during local report processing.
----> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException :
Failed to load expression host assembly.
Details: Operation could destabilize the runtime.
If TypeMock Isolator was disabled, the test ran correctly. This particular test was not using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secondstanza.com&blog=2494489&post=137&subd=secondstanza&ref=&feed=1" />
-
Windows Installer Patches using WiX
John Robbins posts very helpful information about cumulative patches using WiX. It fixed the problem I was having making subsequent patch files.
Heath Stewart also provides additional information about the MinorUpdateTargetRTM.
Posted in WiX Tagged: Patching, Windows Installer, WiX <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secondstanza.com&blog=2494489&post=134&subd=secondstanza&ref=&feed=1" />
-
WorkflowServiceHost Limitations and Work-Arounds
The implementation of the WorkflowServiceHost class apparently requires a single instance of the class to be created for each type of workflow being hosted. This also means that a separate workflow runtime will be created for each of these instances. This doesn’t seem to be very efficient since a single workflow runtime can handle multiple [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=secondstanza.com&blog=2494489&post=128&subd=secondstanza&ref=&feed=1" />