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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Making Async WebService calls from a DNN ModuleMaking Async WebService calls from a DNN Module
Previous
 
Next
New Post
3/1/2007 2:52 AM
 
Hello all,
 I'm trying to make an async web service call from a DNN module. But it fails with the error message:

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

If I have to make an asynchronous webservice call in ASP.NET, I'd set the Async property of the Page tag to true.

But can somebody help me figure out how to do the same in DNN? Any help is appreciated
 
New Post
3/21/2007 4:19 AM
 

I am not sure if you can do it from your module (probably not).... one easy way would be to change the Default.aspx page itself and just add the attribute. However this introduces a whole set of problems with maintenence (although it a quite small change).

What scenario are you trying to acomplish with async web services? Did you try executing them async (async by default) with MS Ajax in DNN?

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
3/21/2007 6:01 AM
 
thanks for the reply
setting Async=true in Default.aspx works fine
but that brought out some other issues (specific to my application), so I had to revert back to making a sync call..

haven't tried Atlas with DNN though..
 
New Post
3/21/2007 8:52 AM
 

Well ok... good luck.

Anyway... Ajax with DNN and web service calls works like a charm.

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Making Async WebService calls from a DNN ModuleMaking Async WebService calls from a DNN Module


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