开发者

IIS 6 asp.net 4 mvc 2 attempt

I am trying to install my application onto IIS 6. It's asp.net 4 mvc 2. I get this error:

Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

In my Web.config I have this:

<compilation debug="true" targetFramework="4.0">
  <assemblies>
    <add assembly="开发者_如何学运维System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  </assemblies>
</compilation>

Does anyone have any ideas for a solution? I would think it is some setup of IIS6 with asp.net.

Thanks

--MB


Make sure you have installed ASP.NET MVC 2 on your server.


check haack's post http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx

If MVC isn't available and installing it on the server isn't an option, try bin deploying dependencies: http://haacked.com/archive/2008/11/03/bin-deploy-aspnetmvc.aspx

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜