2

Closed

The type or namespace name 'Mvc' does not exist in the namespace '

description

Recently downloaded and am trying to exercise the Web demo.
 
I have:
  1. Checked my references and re-sharper recognizes them
  2. Cleaned and re-built
  3. uninstalled older version of web.mvc. and re-installed
     
    still getting the following error
    CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
Closed Mar 18, 2009 at 4:15 PM by Radim
MVC is wokring even without ASP.NET MVC installed

comments

kevin0132130 wrote Jan 1, 2009 at 9:39 PM

I'm having exactly the same problem! I suspect it is a assembly registration problem but I haven't had much success in verifying this.

Radim wrote Jan 21, 2009 at 5:29 AM

Hi Kevin

That is my fault :( sorry! Solution could be done two ways:

That's cause with the inconstancy in web.config. sorry sorry sorry

1) install MVC Beta setup. That will put the fully qualified name for System.Web.Mvc.dll into your PC
and web.config setting:
<add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
will work correctly

2) remove the 'not important' part of this setting:
<add assembly="System.Web.Mvc" />
and assure that in your web-app 'bin' is the System.web.mvc.dll (same for two other Abstraction and Routing)
Application then will read local libraries from your 'bin'

sorry :)
Enjoy Catharsis

wrote Mar 18, 2009 at 4:15 PM

wrote Feb 14, 2013 at 12:26 AM

wrote May 16, 2013 at 6:07 AM