This project is read-only.

Error Creating Controller Oxite.Mvc.Controllers.PostController

Nov 4, 2010 at 7:00 PM

I receive this error when attempting to run: An error occurred when trying to create a controller of type 'Oxite.Mvc.Controllers.PostController'. Make sure that the controller has a parameterless public constructor.

Here is the code in Default.aspx.cs

using System.Web;
using System.Web.Mvc;
using System.Web.UI;

namespace OxiteSite
    public partial class _Default : Page
        public void Page_Load(object sender, System.EventArgs e)
            HttpContext.Current.RewritePath(Request.ApplicationPath, false);
            IHttpHandler httpHandler = new MvcHttpHandler();

I have upgraded the solution and fixed all of the caught errors. Using MVC 2 and ASP.Net 4.

Thanks in advance for any help.