In my ASP.NET MVC 3 project I'm calling a web service for login authentication. But it throws an exception:
Exception Details:
An asynchronous operation cannot be started at this time. Asynchronous operations may only be started within an asynchronous handler or module or during certain events in the Page lifecycle. If this exception occurred while executing a Page, ensure that the Page is marked <%@ Page Async="true" %>.
How to fix this issue?