开发者

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

开发者 https://www.devze.com 2022-12-11 05:40 出处:网络
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\".

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 Co开发者_如何学编程de 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消