Could not load file or assembly System.Web.Mvc

Discussion in 'ASP.NET / ASP.NET Core' started by lightshines, Oct 24, 2008.

  1. I uploaded an MVC application that I had developed with ASP.NET 3.5 SP1. It is my understanding SP1 has been applied to all servers and that I should not need the MVC DLLs in my bin directory. However, I get the following configuration error message reported by ASP.NET:

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

    The version info at the bottom of the ASP.NET error page shows this:

    Version Information:Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

    Shouldn't the version information indicate 3.5?
     
  2. Hi,
    I think since the MVC is still in beta we do need to add the references to our root /bin/
    And the root ASP.NET engine is 2.0 so we still drill up to that for the error handlers.
    I don't have time to mess around with MVC yet but it is something I'm eager to work with soon.
    Especially with Silverlight. MVC+Silverlight+SQL Server 2008 [​IMG]
    Salute,
    Mark



    Technical Evangelist for DiscountASP.NET
    http://www.iis7test.com/webcasts/
    http://weblogs.asp.net/markwisecarver/
    http://blogs.windowsclient.net/wisecarver/default.aspx
     
  3. Mark's right. MVC isn't part of .NET 3.5. It's something additional they're working on at Microsoft that just went into Beta this week. You'll need to upload System.Web.Mvc and possibly System.Web.Abstractions and System.Web.Routing as well. 3.5 does have Abstractions and Routing, but may be a different version than what's used by MVC.
     
  4. In case anyone missed it these ASP.NET walkthroughs on MVC (beta) are very cool:

    Walkthrough: Creating a Basic MVC Project with Unit Tests in Visual Studio
    http://quickstarts.asp.net/previews/mvc/mvc_CreateMvcProjectWalkthrough.htm

    ASP.NET Model-View-Controller Applications
    http://quickstarts.asp.net/previews/mvc/default.htm

    Notice those areHTM files...Can it be? Or maybe a server trick. [​IMG]



    Technical Evangelist for DiscountASP.NET
    http://www.iis7test.com/webcasts/
    http://weblogs.asp.net/markwisecarver/
    http://blogs.windowsclient.net/wisecarver/default.aspx
     

Share This Page