Questions tagged [httpruntime]

51 questions
1
vote
1 answer

Need to inspect the values of a delegate method

I have a need to pass a delegate method with a varying number and type of parameters to another method. My hope is to be able to inspect the values of the parameters within the call. This is my generic cache class. public T…
ewahner
  • 1,149
  • 2
  • 11
  • 23
0
votes
0 answers

httpRuntime vs Compilation in web.config - targetFramework for ASP.NET web site

I have upgraded an ASP.NET web site application from .NET Framework 4.0 to 4.8 using visual studio 2019 I deployed the application to IIS with this configuration in the web.config: Is this setting…
0
votes
1 answer

C# HttpClient's PostAsync fails when HttpRuntime's TargetFramework is set to 4.8

I am facing an issue with the C# HttpClient's PostAsync method. I am calling an API which is on HTTPS SSL and things are working fine until I deployed my code on to a server which has the following in the web.config var response = await…
Nitin A
  • 3
  • 2
0
votes
2 answers

HttpRuntime..cctor takes forever to execute

Dead simple code: using System; using System.Diagnostics; using System.Web; using System.Web.Caching; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { Stopwatch sw =…
Anton Gogolev
  • 113,561
  • 39
  • 200
  • 288
0
votes
0 answers

Is HttpRuntime's requestLengthDiskThreshold in BYTES or KILOBYTES?

The HttpRuntime's maxRequestLength property is clearly documented as kilobytes, and this matches expected behavior. However the HttpRuntime's requestLengthDiskThreshold is documented as "BYTES", yet this does not match expectations or ~50% of other…
user2864740
  • 60,010
  • 15
  • 145
  • 220
0
votes
0 answers

ASP Classic web app times out after 2 mins no matter the setting in IIS or web.config

I'm running Classic ASP web application hosted via IIS and everything is set to timeout after 5 minutes. httpRuntime is set to 300 Server.ScriptTimeout is set to 300 Still a request to generate an excel export which takes more than 2 minutes fails…
0
votes
1 answer

Uploading and Playing large videos. HttpRuntime tag settings Combination. Asp.net4.0 , C#

net page to upload a large file and a generic handler to play these large wmv video files of size which can be upto 150 MB's. I have the file content stored in varbinary type in SQL Server 2005. I have set following settings in httpRuntime in…
AbhiRoczz...
  • 254
  • 2
  • 13
0
votes
0 answers

Where is the data cache stored in ASP.NET

I want to be specific here, please read the question before marking it duplicate. I have a case where I would have hit a webservice to gather user information and perform a search query on all the users, the user count expected here is around half a…
Shintu Joseph
  • 962
  • 7
  • 19
0
votes
0 answers

How to avoid adding httpruntime tag to web.config at deploy

I get the error Config section 'System.web/httpRuntime' already defined when I deploy our application to our development environment. After deploying, if I push the Authentication button on the IIS servers management overview, I get the following…
0
votes
0 answers

C# is httpRuntime cache data stored on the hard disk?

Or how to set up let him save to the hard disk don't let him work in memorySystem.Runtime.Caching MemoryCache if work in memory
H.xt
  • 3
  • 3
0
votes
0 answers

Cannot disable checking for web.config with ImageResizer loaded

I have set allowSubDirConfig to false and added http://imageresizing.net/docs/fcnmode . I am running IIS 8.5 on 2012r2 datacenter. I have a large image collection behind it connected via smb. just having the IIS attempt to look for the web.config…
0
votes
1 answer

'requestValidationMode=2.0' make the url case sensitive

I am working on some asp.net MVC4 project (iis 7). To prevent "Potentialy dangerous request" message I added to the web.config file the line "httpRuntime requestValidationMode="2.0" />" It did prevent the message but another thing occurred - the url…
neriag
  • 151
  • 1
  • 9
0
votes
1 answer

Error : http query string is too long

I use the below code in mvc to download Excel file but it shows error query string too long. public ActionResult Download(string input) { Response.Clear(); Response.ClearHeaders(); Response.ClearContent(); Response.Buffer = true; …
0
votes
0 answers

Default encoder in HttpRuntime doesn't work for ViewBag

I'm making and setting AntiXssEncoder for my web project which uses mvc3 and .net4, and I've done these steps: add AxtiXSSLibrary reference create AntiXSSEncoder derived from HttpEncoder override the HtmlEncode method:…
genki98
  • 680
  • 1
  • 11
  • 31
0
votes
3 answers

Ajax AsyncFileUpload.FileBytes returns null

I have a file upload page with an AsyncFileUpload control. When the user browses to the file the upload control pulls the file into memory. I then have an Upload button which fires the following code to save the file to a database. I am finding that…
David Neale
  • 16,498
  • 6
  • 59
  • 85