Using a uigen.exe in a directory different from the domain assembly directory

Error message:

Execution aborted: Could not load file or assembly 
'PhoneBook.Domain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or 
one of its dependencies. The system cannot find the file specified.

This happens if you forget the advice from the previous section and invoke an uigen.exe that can't find PhoneBook.Domain.dll in the same directory, as in (for example):

C:\PhoneBook\Remotion\net-3.5\bin\debug\uigen.exe /uigen:phonebook.xml /asmdir:phonebook.domain\bin\debug

This can also happen if you migrate to another "instance" (copy) of your project for testing or other experiments.