Questions tagged [httpruntime]

48 questions
42
votes
5 answers

ASP.NET MVC and httpRuntime executionTimeout

I would like to increase the httpRuntime executionTimeout for a subsection of an ASP.NET MVC application. In a regular Web App, you could use:
E Rolnicki
  • 1,617
  • 2
  • 16
  • 26
35
votes
5 answers

How to prevent an ASP.NET application restarting when the web.config is modified?

I'm hosting the ASP.NET runtime via the ApplicationHost.CreateApplicationHost method. When I modify the web.config while the application is running, i see lots of first chance ThreadAbortExceptions thrown. This is right before my application comes…
Jacob Stanley
  • 4,456
  • 3
  • 31
  • 34
22
votes
3 answers

ASP.Net httpruntime executionTimeout not working (and yes debug=false)

We just recently noticed that executionTimeout has stopped working on our website. It was definitely working ~last year ... hard to say when it stopped. We are currently running on: Windows-2008x64 IIS7 32bit binaries Managed Pipeline Mode =…
cbcolin
  • 361
  • 1
  • 4
  • 8
17
votes
1 answer

4.6.1 framework update leaves web.config httpRuntime still at 4.5?

i recently upgraded our c# Web Applications to use .net framework 4.6.1 from 4.5 and only today noticed in the web.configs the .net version differs from the .net version. Everything seems to work fine in production but my questions is, since the…
Kakoritz
  • 300
  • 1
  • 2
  • 15
8
votes
3 answers

HttpRuntime Cache vs. static dictionary/fields

What are the main pros and cons for using HttpRuntime Cache against using simple static field? I need to store data in scope of entire ASP.NET application. HttpRuntime.Cache["MyData"] = someHashtable; vs. private static…
Radek Stromský
  • 819
  • 3
  • 12
  • 27
8
votes
2 answers

Why does HttpWorkerRequest fail during HttpRuntime.ProcessRequest after a .NET 2.0 to .NET 4.0 upgrade?

I am upgrading our application, which has an internal webserver, from .NET 2.0 to .NET 4.0. I am handling a request with an object HttpListenerWorkerRequest, that extends the HttpWorkerRequest class, and creates a request which GetRawUrl() returns a…
johnc
  • 36,657
  • 37
  • 96
  • 137
6
votes
2 answers

How to programmatically set (using GET SET property) "httpRuntime maxRequestLength" in ASP.NET with C# as code behind

How to programmatically set (using GET SET property) "httpRuntime maxRequestLength" in ASP.NET with C# as code behind is there any way to set values in web.config through C# ?
Farhan
  • 61
  • 1
  • 2
5
votes
1 answer

Are there any dangers in increasing the executionTimeout and maxRequestLength of an ASP.NET site?

I have a user who is trying to upload a 150 megabyte file using an ASP.NET site. They are getting an HttpException: System.Web.HttpException: Maximum request length exceeded. I believe I can solve this by increasing the executionTimeout to 300…
Jonathan Sewell
  • 729
  • 10
  • 26
3
votes
2 answers

AppHarbor - Why is my not working?

I have a long querystring value I need to pass in (itself a questionable practice, I understand), and I am not able to get it to take effect on my Appharbor app instance. Locally, I've made this change to my web.config and confirmed that the URL in…
TimDog
  • 8,280
  • 4
  • 38
  • 49
3
votes
4 answers

Locking HttpRuntime.Cache for lazy loading

We have a website running .NET 2.0 and have started using the ASP.Net HttpRuntime.Cache to store the results of frequent data lookups to cut down our database access. Snippet: lock (locker) { if (HttpRuntime.Cache[cacheKey] == null) { …
3
votes
1 answer

executionTimeout to send response

When you set the httpRuntime executionTimeout, does that cut off a response that has already been partially sent to the client? I've noticed in the IIS request queue that occasionally there are some requests that run for a lot longer than our…
user1118189
3
votes
1 answer

Configuring httpRuntime execution timeout for large downloads

At my place of work, we have an ASP.NET page that uses the following code to perform a file download. We use this rather than Request.TransmitFile() because the file is coming directly from a zip archive. private void DownloadStream(Stream…
Odrade
  • 6,930
  • 11
  • 39
  • 65
3
votes
2 answers

Accessing HttpRuntime.Cache from other Thread

I have a thread running behind my ASP.Net. In this thread I put data in the cache like this: HttpRuntime.Cache.Insert("test", "test", null, DateTime.Today.AddHours(6), Cache.NoSlidingExpiration); On the other thread(the webpage) I first check if…
Timo Hermans
  • 135
  • 2
  • 10
2
votes
2 answers

Uploading file size over 4 MB in .NET

I am having trouble uploading a file size over 4 MB. I've tried adding to my Web.Config like many posts have suggested, but it just isn't working. Files under 4 MB work just fine,…
2
votes
0 answers

How and works together?

I understand all .net 4.x.x release versions are in place upgrade. I already read post and similar SO question but still I don’t fully understand application runtime behavior in context of below two configuration settings in my application…
rahulaga_dev
  • 2,985
  • 4
  • 21
  • 38
1
2 3 4