Saturday 24 August 2013

[Fix]Asynchronous operations are not allowed in this context

Leave a Comment
Asynchronous operations are not allowed in this context. Page starting an
asynchronous operation has to have 
the Async attribute set to true and an asynchronous operation can only be
started on a page prior to PreRenderComplete event.

The error above occur when you try to call method on web service asynchronously.
The solution is to add Async equal to true in your aspx page.

<%@ Page Title="" Language="C#" MasterPageFile="~/Application/Site1.Master" 
AutoEventWireup="true" Async="true"    %>


By
NOTE : – If You have Found this post Helpful, I will appreciate if you can Share it on Facebook, Twitter and Other Social Media Sites. Thanks =)

0 comments:

Post a Comment

Subscribe to our newsletter to get the latest updates to your inbox.

Your email address is safe with us!




Founder of developersnote.com, love programming and help others people. Work as Software Developer. Graduated from UiTM and continue study in Software Engineering at UTMSpace. Follow him on Twitter , or Facebook or .



Powered by Blogger.