An asynchronous operation cannot be started at thistime.
Asynchronous operations may only be started within an asynchronoushandler
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" %>
Description: Anunhandled exception occurred during the execution of the current web request.
Please review the stack trace for more information about the error and where itoriginated in the code.
Exception Details: System.InvalidOperationException:An asynchronous operation
cannot be started at this time. Asynchronousoperations may only be started within an asynchronous
handler or module orduring certain events in the Page lifecycle.
If this exception occurred whileexecuting a Page, ensure that the Page is
marked <%@ PageAsync="true" %>.
I got the following error while running the application; we needed to add Async attribute to the page directive and set the value is set to true.
<%@ Page Language="C#" AutoEventWireup="true" Async="true" CodeBehind="ProgressForm.aspx.cs" Inherits="MVC_tutorials.ProgressForm" %>
Post your comments / questions
Recent Article
- How to restrict access to the page Access only for logged user in Django
- Migration admin.0001_initial is applied before its dependency admin.0001_initial on database default
- Add or change a related_name argument to the definition for 'auth.User.groups' or 'DriverUser.groups'. -Django ERROR
- Addition of two numbers in django python
- The request was aborted: Could not create SSL/TLS secure channel -Error in Asp.net
- FieldError: Cannot resolve keyword 'id' into field in Django project
- How to hide the ID field from the Django admin?
- It is impossible to add a non nullable field without specifying a default. Django error
Related Article