title: MVC 2.0 - different view based on URL with shared controls
body: <p>I have 2 master pages.  One is intended to be shown in a normal standalone website.  The other is to be used in external sites as an Iframe.</p>
  
  <p>I want to be able to show the normal page at <a href="http://example.com/home/index" rel="nofollow">http://example.com/home/index</a> and the iframed version at <a href="http://example.com/framed/home/index" rel="nofollow">http://example.com/framed/home/index</a></p>
  
  <p>I want to have controls that will postback to one controller so I don't have to duplicate logic, so they must be available in both the normal and iframed versions.</p>
  
  <p>My problem is that when I try and use areas, I just can't get them to work right with the default url.  Also, I have the added complication of structuremap.  When I try and hit /area/controller/action, I get </p>
  
  <blockquote>
    <p>The IControllerFactory
    'MySite.Web.Code.IoC.StructureMapControllerFactory'
    did not return a controller for the
    name 'MyArea'.</p>
  </blockquote>
  
  <p>Does anyone know how to make this kind of setup work?  Really all I'm doing is trying to show one set of views if it has /Framed/controller/action and another set if it does not have /framed.  I thought areas were the way to go, but maybe not.</p>