Questions tagged [asynccontroller]

51 questions
1
vote
3 answers

Asynchronous Controllers at ASP.NET 4 make sense?

Asp.net 2 have 12 threads by default Now Asp.Net 4 have 5000. We still need async controllers?
Felipe Pessoto
  • 6,855
  • 10
  • 42
  • 73
1
vote
2 answers

ASP.NET MVC - Why are these async tasks running immediately?

I have an ASP.NET MVC async action method which looks like this: public async Task IndexAsync() { var tasks = new List> { GetSomethingAsync("a"), GetSomethingAsync("b") }; await…
RPM1984
  • 72,246
  • 58
  • 225
  • 350
1
vote
1 answer

ASP.NET MVC AsyncController together with NHibernate

I am using nhibernate in an open session per view approach where the session opens before the action method and closes right after. Using an AsyncController makes this model break because the controller performs data operations even when it has…
Yannis
  • 6,047
  • 5
  • 43
  • 62
1
vote
1 answer

Resource not found in asp.net mvc AsyncController

I just converted a my controller to asyncController in asp.net mvc 2. (ie: spliting action method About into AboutAsync and AboutCompleted). However, I am getting a resource not found error. My route table has not change and the only reason I…
Herman
  • 3,004
  • 5
  • 37
  • 49
1
vote
1 answer

Unable to access the HttpContext or Request object in the constructor of an AsyncController

I am using an AsyncController say 'AbstractAbcContoller' public class AbstractAbcContoller : AsyncController { } and then I have 3 more controllers which inherit the newly created AbstractAbcContoller. Now when I create a constructor of any of…
Yasser Shaikh
  • 46,934
  • 46
  • 204
  • 281
1
vote
1 answer

AsyncController's async action blocks requests instead of returning immediately

This is the first time that I am using AsyncController (MVC3) and I am having trouble understanding the asynchronous action. My task is to import moderate amount of data from Excel to SQL Server database, using Entity Framework. I thought this would…
Jatin
  • 4,023
  • 10
  • 60
  • 107
1
vote
5 answers

Using AsyncController to help increase concurrency on a legacy ASP.NET MVC 3 project

We have a website that is struggling with concurrent users right now. Here is the very high-level background of the project: Legacy ASP.NET MVC 3 project (.NET 4) Can't do any major rewriting of core code Main entry point that takes the longest…
Dino Gambone
  • 545
  • 3
  • 10
1
vote
2 answers

Why is controller thread is blocked if I use the session?

I have a pretty simple controller: public class HomeController : Controller { public ActionResult Index() { Session["SomeData"] = "123"; return View(); } [HttpPost] public…
1
vote
1 answer

Method returning null value from MSMQ within AsyncController

I'm attempting to build a framework for real-time delivery of messages (using MSMQ at the moment) to be displayed on a webpage that will serve as an informational display. As soon as a message lands in the queue, I would like the message to display…
Ben
  • 308
  • 2
  • 13
0
votes
1 answer

AsyncController callback not being invoked, how to invoke it?

Hello i'm trying to implement an AsynController, here is my code: [NoCache] public class GraphController : BaseAsyncController { private readonly IReportsRepository _reportsRepository; private readonly ISqlQueryRepository…
hackp0int
  • 4,052
  • 8
  • 59
  • 95
0
votes
1 answer

Remove event listener from async controller on timeout

I have a problem with a MVC3 asynccontroller, When the controller asyc method runs I increment the asyncontroller and also starts to listen to backednd events AsyncManager.OutstandingOperations.Increment(); eventAggregator.Subscribe(this); And then…
Anders
  • 17,306
  • 10
  • 76
  • 144
0
votes
1 answer

To wait or not to wait inside an AsyncController's Async method

I've seen 2 flavors of working with asyncronous operations in mvc controllers. First: public void GetNewsAsync() { AsyncManager.OutstandingOperations.Increment(); using (ManualResetEvent mre = new ManualResetEvent(false)) { …
Paul Rivera
  • 525
  • 1
  • 8
  • 20
0
votes
2 answers

MVC3 - using AsyncController to prepopulate ObjectCache from database

I have a form that searches via AJAX against two different data sources. The data is relatively small but the speed at which it returns is slow. I built a cache layer to store the full result after the first query... however, I would like to prime…
Shawn
  • 1,871
  • 2
  • 21
  • 36
0
votes
1 answer

Multi-Threading Design Question for ASP.NET MVC 2

I am working on a Travel related website and here is my high level architecture: ASP.NET MVC 2 (Presentation Layer) Services Layer Repository Layer communicating with external J2EE Services For a particular user search scenario, I need to call…
Alex
  • 833
  • 3
  • 15
  • 28
0
votes
1 answer

How to upload file asynchronously in grails 3

I am new to grails framework and I am stuck with the following problem: I want to upload project with file and some details like title,description and I have very big stl 3d file. While file upload takes time i want user to go on next page and fill…