ASP.Net MVC 2 Forms Authentication cookieless = "UseUri" while submit authorization fails

Posted by rintoantony on Stack Overflow See other posts from Stack Overflow or by rintoantony
Published on 2010-05-24T08:58:26Z Indexed on 2010/05/24 9:31 UTC
Read the original article Hit count: 330

Filed under:

hi,

I just started working with ASP.Net MVC 2.

I created a new ASP.Net MVC application and created one vehicle controler with a database table connected with LINQ. Then created forms authentication mechanism for the application and tried to use the uri instead of cookies it was working smoothly but when i submit the form by creating a "Create" view from the controler using the utility it just dont work. The autherization got failed and asking to enter the user name and password again.I had created the authorization mechanism by adding Authorise attribute to the Controller so as to get authorized for all the actions.

namespace MVCNEW.Controllers
{    
    [Authorize]
    public class VehicleController : Controller
    {

But if i use the cookies instead of uri it works fine.

Thanks in advance...

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2