This project is read-only.

The type or namespace name 'Ajax' does not exist in the namespace 'System.Web.Mvc'

Topics: ASP.NET 2.0, Business Logic Layer
Mar 31, 2013 at 5:42 PM
I'm trying to install BlogEngine.NET in a subdirectory under my site hosted at DiscountASP.NET. I copied everything in the Web zipfile (v2.7) to the directory, made the directory a web app (via the control panel), and when I hit the directory, I get:

Server Error in '/traffic/blog' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0234: The type or namespace name 'Ajax' does not exist in the namespace 'System.Web.Mvc' (are you missing an assembly reference?)

Source Error:

Line 22: <add namespace="System.Web.Helpers" />
Line 23: <add namespace="System.Web.Mvc" />
Line 24: <add namespace="System.Web.Mvc.Ajax" />
Line 25: <add namespace="System.Web.Mvc.Html" />
Line 26: <add namespace="System.Web.Routing" />

Source File: e:\web\inrixcom000\htdocs\traffic\Web.config Line: 24
Apr 1, 2013 at 1:27 AM
At the very least, you need to cancel web.config inheritance from parent app.
Apr 3, 2013 at 5:09 PM
Ha! It was that simple! Thanks!!!