Async pages and SharePoint
Have you ever tried to use async in SharePoint, do not know why is not allowed, well here is the reason:
As it is well known, publishing pages within SharePoint do not support the use of async attribute, and therefore are not treated as asynchronous pages. The removal of the feature by the SharePoint team was done to ensure that relatively un-trusted users of a site collection will not be able to create async pages and thereby create DoS attacks by tying up server threads in unanticipated ways. On the other hand, The async attribute is allowed in _layouts pages and therefore should work without any trouble.
According to the an official Microsoft answer the use of the synchronous pages represents a grey are regarding its coverage by Microsoft. The SharePoint team have not yet been able to test all possible combinations that can be found when working with SharePoint and .Net. One of those combinations that have not yet been tested is the use of the async pages in the _layouts pages. That is, the SharePoint team cannot guarantee that everything works for sure and therefore it is “unsupported”, of course this statement does not mean that the code will not work but that Microsoft will not grant fixes in SharePoint for possible problems that aproject might run into when using async pages.
As it is well known, publishing pages within SharePoint do not support the use of async attribute, and therefore are not treated as asynchronous pages. The removal of the feature by the SharePoint team was done to ensure that relatively un-trusted users of a site collection will not be able to create async pages and thereby create DoS attacks by tying up server threads in unanticipated ways. On the other hand, The async attribute is allowed in _layouts pages and therefore should work without any trouble.
According to the an official Microsoft answer the use of the synchronous pages represents a grey are regarding its coverage by Microsoft. The SharePoint team have not yet been able to test all possible combinations that can be found when working with SharePoint and .Net. One of those combinations that have not yet been tested is the use of the async pages in the _layouts pages. That is, the SharePoint team cannot guarantee that everything works for sure and therefore it is “unsupported”, of course this statement does not mean that the code will not work but that Microsoft will not grant fixes in SharePoint for possible problems that aproject might run into when using async pages.
0 comments:
Post a Comment