Tuesday, May 04, 2010

WPF: "Unable to find the specified file" (ResourceDictionary)

When trying to reference a cross-project ResourceDictionary, I referenced it within the xaml control that was using it:

<controls:CheckinUserControlView.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Dcs.UI.Wpf.Common;Component/Resources/ResourceDictionary.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</controls:CheckinUserControlView.Resources>

In Dcs.UI.Wpf.Common project, I also set Resources/ResourceDictionary.xaml build action to "Resource".

Visual Studio 2008 recognized the ResourceDictionary and compliled correctly. However, in Expression Blend, I was getting error "Unable to find the specified file" for the ResourceDictionaries

Then I found this thread.

In short, the solution was to open Dcs.UI.Wpf.Common.csproj in notepad, find the entry for <FileAlignment>, then directly after it, paste:
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

Then reload the project in Expression Blend.


EDIT: Soon after I made these changes, the compiler started complaining about "Missing XmlNamespace, Assembly, or ClrNamespace in Mapping instruction", even though my XAML headers contained them. After a lot of trial and error, I changed the ResourceDictionary.xaml build action back to "Page". This resolved the exception and I was able to compile again, but I feared that Blend would again be unable to recognize my ResourceDictionary. But, to my pleasant surprise, Blend also still sees it in design time. Nice!

Unfortunately I don't know why it worked, why it stopped working, why it worked again. But there ya' go...


Saturday, March 03, 2007

Exploring Our Connectivity Options

Our home is small and cozy. We have loved living there. But we missed not having broadband Internet access. This photo was taken last summer, right around the time that I began exploring our connectivity options.

It wasn't enough that we just get high-speed Internet. I had specific goals:

  1. Minimum installation cost
  2. Reliability and low maintenance
  3. Low latency (specifically for VoIP and Xbox Live)
  4. Minimum monthly cost

Here are the options that I would explore over the next 7 month:

  1. Cable Internet
  2. DSL Internet
  3. Satellite Internet
  4. Broadband Over Power Lines
  5. Fiber
  1. Cellular/Mobile Internet
  2. Wireless ISP
  3. WiMax ISP
  4. DIY Wireless

1. Cable Internet

Cable would have been great. Relatively low cost, low latency, great speeds. Unfortunately, when we moved in, we were told that there is no cable service in our canyon. Just in case, I called Comcast. After a very lengthy phone call -- they had a hard time even locating us on the map -- the agent confirmed my belief.

"Any plans to add service in our area?" I asked.

"Nope," was the response, followed by an explanation that Comcast cant' even consider installation in a new area unless there is a significant or growing population.

2. DSL Internet

There are no phone lines running up our canyon. But a friend suggested that telcos might be obligated by law to provide phone service. So I called Qwest to see. Those who I talked to weren't able to tell me much. After being transferred from one department to another, I finally got my name added to a "New Installations" list.

A few days later, a very knowledgable, friendly technician named Deanne called me. She explained that there are no phone lines in the area; that the nearest existing terminal is over 2 miles away to the west (as the crow flies). She told me I could still order service if I wanted it, but warned that I would need to be prepared to bear around half the cost. Hmmm.... The cost of installing poles, probably by helicoptor due to the rugged terrain, then running phone wire over a distance of +2 miles? Doesn't really meet my first goal. :) She quickly went on to suggest a better option: If our canyon association were willing to bear half the cost, Qwest would bear the other half, and should the cost go beyond $30,000, the federal government will also bear part of the cost.

There aren't enough of us living in the area for that to be an option, but I went ahead and asked here one more question. If we did somehow manage to run phone line those two miles, would we be able to get DSL Internet? She told me that DLS service is only available within 15,000 feet from the base station. Unfortunately, her records showed that that phone terminal (+2 miles away from my home) was already at the extremity of that range, and that there's no way we'd be able to get DSL in our area.

So DSL wasn't an option. I cancelled the installation ticket. She gave me her phone number in case I had any other questions, and we ended the call.

That phone number would be used many more times a few months later.



Monday, February 05, 2007

Stylin' Update

I decided to update the style of my blog... to better reflect the outdoorsy, artistic, nerdy fellow that I am.


Wednesday, January 24, 2007

Back to the 21st Century

We're spending our evening at home....
In our cabin...
Miles away from civilization.

We love the beauty and solitude of this small canyon we've called Home for the last 15 months: The gurgling stream that runs beneath our back patio, the pines that tower overhead and cast cool shadows in the summer, the wild raspberries that bloom each spring, the deer and elk and even moose that are the closest thing we have to snoopy neighbors, the fresh air and warm breeze in autumn that rustles the maple and aspen trees. We truly love it here.

But sometimes, the solitude can be a little overbearing , especially for a young(ish) techie couple accustomed to life's modern conveniences.

For being only a 10 minute commute from my office, this place is pretty remote: No landline phone service nor cable. No snailmail service, nor garbage pickup, nor winter snowplowing (we ride a snowmobile to our cars each morning). We do have electricity though, a clear view of the southern sky, a cluster of mobile cell towers a half-mile away, and line-of-sight (via a nearby peak) to a sliver of the city 18 miles below us. And ultimately, those factors proved to be enough to get reliable, high-speed Internet service to our cabin, finally propelling us back to the 21st century.

I hope to use this site to document my 6 month effort.