简体   繁体   中英

ASP.NET MVC on 2008 R2 IIS7.5 Not Loading

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?

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>

We resolved this issue.

We were overwriting the default authentication and we needed to declare the assemblies down in the system.webServer section that nerdfury mentioned.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM