views:

426

answers:

3

as the title notes, we can't get in to our site.

this same site works fine for us in 2003 and in our dev environments. but once we moved to 2008 R2: we "can't get in".

i'd love it if we could use fuslogvw to watch the assembly bindings: but that's not possible on these servers (no sdk installed).

i've seen other posts that say nothing special is required for iis7 or 7.5, but we've got to be missing something...

we do get an expception:

Unable to resolve controller of type: OurController.HomeController StructureMap.StructureMapException StructureMap Exception Code 207: Internal exception while creating Instance

error 207 is defined as : Internal exception in the constructor function of the targeted concrete type. InstanceKey "{0}", PluginFamily

any suggestions?

+1  A: 

make sure that both of these entries are in your <system.webserver> section in yoru web.config. The handler is something that is required for IIS 7+ but not lesser versions.

<system.webServer>
  <modules runAllManagedModulesForAllRequests="true">
    <add name="UrlRoutingModule"
       type="System.Web.Routing.UrlRoutingModule,
             System.Web.Routing, Version=3.5.0.0,
             Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
  </modules>
  <handlers>
    <add name="UrlRoutingHandler"
       preCondition="integratedMode"
       verb="*" path="UrlRouting.axd"
       type="System.Web.HttpForbiddenHandler, 
             System.Web, Version=2.0.0.0, Culture=neutral, 
             PublicKeyToken=b03f5f7f11d50a3a" />
  </handlers>
</system.webServer>
NerdFury
yeah: this is one of the first things i verified... :( i added the exception we get to the question...
A: 

Are the boxes running 3.5 sp1 (I think, whatever is current)? Have you installed the ASP.NET MVC runtime bits?

Wyatt Barnett
How do you install the asp.net mvc runtime bits??? I can't fimnd an installer anywhere!
Redeemed1
A: 

woot!

we found it!

we were overwriting the default authentication and we needed to delcare the assemblies down in the system.webserver section that nerdfury mentioned...

thx to those who took the time to ponder this for me... :)