[Service, HttpPostOnly]

Topics: Developer Forum, Project Management Forum, User Forum
May 26, 2010 at 11:21 PM

Hi,

 

I bought your book for TheBeerHouse MVC version and currently following it. I finished the solution part of Membership. When I try to run it is giving an error for

[Service, HttpPostOnly]

at action

[Authorize(Roles = “Admin”)]
[Service, HttpPostOnly]
public ActionResult DeleteRole(string id)
{
    Roles.DeleteRole(id);
    return View(new { id = id });

 

As I researched it is related to ManagedFusion something. Can you please suggest how to solve this problem?

 

Thanks

May 27, 2010 at 5:47 AM

Can you check javascript file ? i think there is routing problem in global.asax

May 27, 2010 at 10:08 AM

This error is in the UserController not in the Java Script. Also what can be the problem with Global.asax