Bug 8193 - ASP.NET MVC - Could not load file or assembly System.Web.Mvc
Summary: ASP.NET MVC - Could not load file or assembly System.Web.Mvc
Status: RESOLVED DUPLICATE of bug 11004
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: ASP.Net ()
Version: 3.0.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-11-03 13:22 UTC by pinggi
Modified: 2013-04-01 15:35 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Screenshot of the error (206.03 KB, image/png)
2012-11-03 13:22 UTC, pinggi
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 11004

Description pinggi 2012-11-03 13:22:50 UTC
Created attachment 2848 [details]
Screenshot of the error

OS: Win7

1. Install Monodevelop 3.0.5
2. Create new project based on MVC3 (Razor) template
3. Run it in Debug mode (F5)

Internet browser is run and the following error is shown:


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

Description: HTTP 500. Error processing request.

Stack Trace:

System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
  at System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity, Boolean refonly) [0x00000] in <filename unknown>:0 
  at System.AppDomain.Load (System.String assemblyString) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain:Load (string)
  at System.Reflection.Assembly.Load (System.String assemblyString) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.LoadAssembly (System.Web.Configuration.AssemblyInfo info, System.Collections.Generic.List`1 al) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.GetReferencedAssemblies () [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.CallPreStartMethods () [0x00000] in <filename unknown>:0 

Version information: Mono Runtime Version: 2.10.8 (tarball); ASP.NET Version: 4.0.30319.1


5. GAC contains:

--- GAC_MSIL ---
c:\windows\assembly\GAC_MSIL\System.Web.Mvc

--- NativeImages_v2.0.50727_32 ---
c:\windows\assembly\NativeImages_v2.0.50727_32\System.Web.Mvc

--- NativeImages_v2.0.50727_64 ---
c:\windows\assembly\NativeImages_v2.0.50727_64\System.Web.Mvc

--- NativeImages_v4.0.30319_32 ---
c:\windows\assembly\NativeImages_v4.0.30319_32\System.Web.Mvc

--- NativeImages_v4.0.30319_64 ---
c:\windows\assembly\NativeImages_v4.0.30319_64\System.Web.Mvc
Comment 1 Mikayla Hutchinson [MSFT] 2013-04-01 15:35:28 UTC

*** This bug has been marked as a duplicate of bug 11004 ***