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
- Import "django.shortcuts" could not be resolved from source in Django Project
- How to add two numbers in Android Studio? | Source Code
- FindViewByID returns null in android studio -SOLVED
- Saving changes is not permitted in SQL SERVER - [SOLVED]
- Restore of database failed. File cannot be restored over the existing. -[SOLVED]
- One or more projects in the solution were not loaded correctly in Visual Studio 2019 | FIXED
- How to find Laptop's Battery Health?
- SOLVED-Related Field got invalid lookup: icontains error in Django
Related Article