Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...WebService Woes - Asynchronously calls from UserControlsWebService Woes - Asynchronously calls from UserControls
Previous
 
Next
New Post
8/25/2008 9:04 PM
 

Hi,

I'm trying to make an asynchronous call using the new event model (the old Beginxxx/Endxxx has been phased out it seems and these methods are not generated from the WSDL by VS2005/2008).

When I make the call I get the following error (see bottom for full). This is because you need to have the Page directive of Async="true". I am of course using a UserControl so I do not have control over this and cannot change the Default.aspx page.

Has anyone called a webservice asynchronously and got around this problem?

 

ModuleId: 781
ModuleDefId: 234
FriendlyName: [L]Edit Post
ModuleControlSource: DesktopModules/Smart-Thinker - Wall/PostEdit.ascx
AssemblyVersion: 04.06.02
PortalID: 0
PortalName: My Website
UserID: 2
UserName: admin
ActiveTabID: 158
ActiveTabName: User Profile
RawURL: /dotnetnuke/Home/User-Profile/ctl/Edit/mid/781/rid/2.aspx
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer: http://localhost/dotnetnuke/Home/User-Profile/ctl/Edit/mid/781/rid/2.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: b534706e-026f-403c-a7cf-b46945e7b54a
InnerException: 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.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.AspNetSynchronizationContext.OperationStarted
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: 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. ---> System.InvalidOperationException: 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. at System.Web.AspNetSynchronizationContext.OperationStarted() at System.ComponentModel.AsyncOperationManager.CreateOperation(Object userSuppliedState) at System.Web.Services.Protocols.SoapHttpClientProtocol.InvokeAsync(String methodName, Object[] parameters, SendOrPostCallback callback, Object userState) at SmartThinker.DNN.Modules.Wall.StoryFeedWS.StoryFeedWS.AddActionAsync(Int32 actionType, Int32 relatedID, String actionText, Int32 createdByUserID, Object userState) in F:\DotNetNuke_4.3.1_Source\Website\DesktopModules\Smart-Thinker - Wall\Web References\StoryFeedWS\Reference.cs:line 96 at SmartThinker.DNN.Modules.Wall.StoryFeedWS.StoryFeedWS.AddActionAsync(Int32 actionType, Int32 relatedID, String actionText, Int32 createdByUserID) in F:\DotNetNuke_4.3.1_Source\Website\DesktopModules\Smart-Thinker - Wall\Web References\StoryFeedWS\Reference.cs:line 88 at SmartThinker.DNN.Modules.Wall.PostEdit.PublishStoryIntegration(SmartThinker_WallPostInfo smartThinker_WallPostInfo) in F:\DotNetNuke_4.3.1_Source\Website\DesktopModules\Smart-Thinker - Wall\PostEdit.ascx.cs:line 280 at SmartThinker.DNN.Modules.Wall.PostEdit.UpdatePost(SmartThinker_WallPostController smartThinker_WallPostController, SmartThinker_WallPostInfo smartThinker_WallPostInfo) in F:\DotNetNuke_4.3.1_Source\Website\DesktopModules\Smart-Thinker - Wall\PostEdit.ascx.cs:line 181 at SmartThinker.DNN.Modules.Wall.PostEdit.cmdUpdate_Click(Object sender, EventArgs e) in F:\DotNetNuke_4.3.1_Source\Website\DesktopModules\Smart-Thinker - Wall\PostEdit.ascx.cs:line 137 --- End of inner exception stack trace ---
Source:
[L]Server Name: RODDEV


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post
9/1/2008 4:54 AM
 

Anyone done this before?


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
4/21/2009 9:55 PM
 

I am smack in the middle of this problem, and haven't found too many solutions. Has anyone else run into this and found a resolution?

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...WebService Woes - Asynchronously calls from UserControlsWebService Woes - Asynchronously calls from UserControls


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out