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 !!!

1 comment:

  1. Good website! I really love บาคาร่า how it is easy on my eyes and the data are well written. I’m wondering how I could be notified when a new post has been made. I have subscribed to your RSS which must do the trick! Have a great day!

    ReplyDelete