Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8060041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:51:34+00:00 2026-06-05T09:51:34+00:00

I have a JSON service that I’m exposing via ASP.NET MVC 3. This service

  • 0

I have a JSON service that I’m exposing via ASP.NET MVC 3. This service is exposed as an Action on a Controller. I can successfully call the action. However, occasionally, the action takes too long to complete. Because of that, my caller fails due to a timeout. My question is, how do I change the timeout threshold’s in ASP.NET MVC 3.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:51:36+00:00Added an answer on June 5, 2026 at 9:51 am

    If you need do some task that you know can take a little while would be nice use AsyncControllers, and you can set diferent timeout betwen actions

    for example

    [AsyncTimeout(3000)] //timeout in miliseconds
    public void DoTaskAsync(){
    
    //something that takes a long time
     AsyncManager.Parameters["result"] = contentresult; //Contentresult is your data result of process
    
    }
    public ActionResult DoTaskCompleted(String result){
       return json(result);
    }
    

    http://msdn.microsoft.com/en-us/library/ee728598.aspx#Y4400 for details…

    otherwise… HttpContext.Server.ScriptTimeout = 3000;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC3 Restful web service that uses the Microsoft JSON serializer.
I have a REST service that returns a JSON like this: [{@id:123,name:Name}] and I'm
I have a series of .NET WCF RESTFul services that can produce either JSON
I have ASP MVC 3 application. I created WCF REST JSON Service and added
I have a Restlet Service that looks like this: @POST @Produces(application/json) public String processImmediately(String
So I have a web service that returns this JSON: [{other_user:54,distance:1 ft,duration:1 min},{other_user:55,distance:2 ft,duration:5
I have a Nancy JSON REST service that uses the following serialisation code... FormatterExtensions.AsJson(this.Response,
I have a WCF service that returns JSON to the clients. This is the
I have hosted a web service that gets called from an ASP.NET 1.1 by
I have a web service that queries data from this json file, but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.