我有一个异步操作,出于各种原因需要使用对ASP.NET网页的HTTP调用来触发该操作。当我的页面被请求时,它应该开始这个操作并立即向客户端返回一个确认。此方法也通过WCFWeb服务公开,并且运行良好。在我第一次尝试时,抛出了一个异常,告诉我:Asynchronousoperationsarenotallowedinthiscontext.PagestartinganasynchronousoperationhastohavetheAsyncattributesettotrueandanasynchronousoperationcanonlybestartedonapagepriorto
我有一个异步操作,出于各种原因需要使用对ASP.NET网页的HTTP调用来触发该操作。当我的页面被请求时,它应该开始这个操作并立即向客户端返回一个确认。此方法也通过WCFWeb服务公开,并且运行良好。在我第一次尝试时,抛出了一个异常,告诉我:Asynchronousoperationsarenotallowedinthiscontext.PagestartinganasynchronousoperationhastohavetheAsyncattributesettotrueandanasynchronousoperationcanonlybestartedonapagepriorto