Friday, March 11, 2011

Begin/End Async WebService Proxy Methods Not Generated in Web Application Projects

Last week I worked with Web Method's Async call from Application page on button click.


One more interesting thing, this web method takes more than 15 min to complete migrate data so End User will not sit front off screen.

Due to that reason I had to implement Async web service call.

As per my knowledge I can call Async web method using Begin-End Proxy method but this is limited for Web Site and SharePoint's application page is create using Web Application Project.

So it is difficult to implement in my Web Application Project. Then after some research & googling I found one solution from Microsoft Team.

Solution:
Open Web Application Project's .csproj file in note pad & Add below property in PropertyGroup Tag





... 

true





Then save .csproj file & update you web service in Web Application Project.


Now you can see the Begin/End Proxy methods in web application Project.

Reference here.

Happy Coding !!!

No comments:

Post a Comment