ASP.NET MVC 2 - Account controller not found

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-05-01T14:11:14Z Indexed on 2010/05/01 14:17 UTC
Read the original article Hit count: 415

Hi all,

I've recently created an ASP.NET MVC 2 application, which works perfectly in the development environment. However, when I deploy it to the server (123-reg Premium Hosting), I can access all of the expected areas - except the Account controller (www.host.info/Account). This then attempts to redirect to the Error.aspx page (www.host.info/Shared/Error.aspx) which it cannot find. I've checked that all of the views have been published, and they're all in the correct place.

It seems bizarre that two other controllers can be accessed with no problems, whereas the Account controller cannot be found. I have since renamed the AccountController to SecureController, and all of the dependencies, to no avail.

The problem with not being able to find the Error.aspx page also occurs on the development environment.

Any ideas would be greatly appreciated.

Thanks,

Chris

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about c#