473,799 Members | 2,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where to find help with ASP.NET...

.... when no one here has an answer?

Does MS offer support for its programming products where that support
doesn't cost an arm and a leg, but where you can at least get a response?

I'm not trying to be a jerk, I know that support on these newsgroups is
voluntary, and I'm not jumping on anyone for not being able to answer some of
the questions that are asked here.

It just gets frustrating when a component in a MS product like ASP.NET
doesn't work as specified in the documentation, and there's no other help out
there to be found. Google returns only references to the MS documentation,
and no other ASP.NET site addresses the component in question
(maxrequestleng th) when it's used in an ASPX page itself rather than
web.config. I suppose its because this ability is new in 2.0, but still, the
documentation should have better examples, or give the correct usage. </rant>

Sep 25 '06
10 1955
I will stick my neck out and say that the documentation is mistaken.

Page developers can use the HttpRuntime class properties to find out
information about the current application domain for diagnostic purposes, for example.

The HttpRuntime object is used at the beginning of the
ASP.NET pipeline model that processes HTTP requests.

The ProcessRequest method drives all subsequent ASP.NET Web processing.

Since, if you change any httpruntime property, the result would need to be
handled by a new process, you can't get there from here if you attempt to
change, on the fly, the httpruntime's operational parameters.

My curiosity was piqued by your experience, so I tested the scenario.

Sure enough, I could, apparently, change the MaxRequestLengt h property.
But, just like you reported, the upload procedure failed

Here's what I used :

Sub Page_Load(obj as object, e as eventargs)
Dim httpConfig As HttpRuntimeSect ion = New HttpRuntimeSect ion
lblMaxRequestLe ngth.Text = httpConfig.MaxR equestLength
httpConfig.MaxR equestLength = 8192
lblMaxRequestLe ngth2.Text = httpConfig.MaxR equestLength
End Sub

Sub Button1_Click(s ender As Object, e As EventArgs)

If FileUpLoad1.Has File
FileUpLoad1.Sav eAs("C:\" & FileUpLoad1.Fil ename)
Label1.Text = "Received " & FileUpLoad1.Fil eName & " Content Type " _
& FileUpLoad1.Pos tedFile.Content Type & " Length " & FileUpLoad1.Pos tedFile.Content Length
Else
Label1.Text = "No file was uploaded"
End If
End Sub

When the page loads, lblMaxRequestLe ngth reports that MaxRequestLengt h is 4096,
and lblMaxRequestLe ngth2 reports that MaxRequestLengt h ( changed in Page_Load )
is 8192, but when I tried uploading a 6MB file, the process failed.

An automatic AppDomain restart should occur when any httpRuntime parameter is modified.

The problem, of course, is that when the AppDomain restarts, it goes right back
to the default httpruntime parameters specified in web.config or machine.config.

It looks like you found a documentation error.

If you feel strongly enough about this, bug it at the Feedback Center:
http://connect.microsoft.com/feedbac...spx?SiteID=210


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== =====
"salty" <sa***@discussi ons.microsoft.c omwrote in message
news:30******** *************** ***********@mic rosoft.com...
"Juan T. Llibre" wrote:
>re:
So it was great to see the .NET Framework 2.0 now allegedly supports this in the page.

I'm not so sure that's true.

[...]

Where did you read that changing the
httpRuntime' s MaxRequestLengt h can be done at the page level ?

Here:
http://msdn2.microsoft.com/en-us/lib...estlength.aspx

MaxRequestLengt h is a public property of the HttpRuntimeSect ion Class
described here:
http://msdn2.microsoft.com/en-us/lib...n_members.aspx

Unless I'm completely misunderstandin g what I'm reading, in which case my
complaint about MS's documentation remains.


Sep 26 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2080
by: Mike | last post by:
I'm not sure what to call what I want, but I will describe my intent, hoping that someone will offer a resource for a ready-built solution. I sell construction products to a group of about 50 subcontractors. Some of them have their own websites, but many do not. I want to offer my clients a central site that can host sub-sites, one for each client. All will be under my domain: my-domain.com/customer1 my-domain.com/customer2 etc.
5
1869
by: windandwaves | last post by:
Hi Folk I was wondering if it is possible to find out what people click on, using PHP. For example, I have a PHP page with an email link and some third party links (e.g. www.someone-else.com). I want to know where people go. My own solution would be to make the link not to an email or a third-party website, but to another page along the lines of
2
2105
by: David List | last post by:
I posed a MySQL C API question a few days back here, and got zero answers. I assume it is because this is not the right place to ask such questions. Does anyone here know where I could ask C API questions? I haven't been able to find a mailing list or newsgroup specifically dealing with the MySQL C API. -- Med venlig hilsen / Best regards
15
3338
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
10
8988
by: MLH | last post by:
I have a database named credifree. I did it with mysql's create command. Yet, I can find no files on my linux box except for a\ directory and a gif file that have the name credifree. Why? What's the name mysql might have made a database file under? Where is it stored? Just curious. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx mlh@appserver mlh $ mysql / -u root -p
4
25709
by: Tom Walker | last post by:
I cannot get the WHERE statement to work correctly unless I use a literal with the LIKE. I want to use a working storage data name so that I can vary the WHERE statement. Example that works: WHERE DSNAME LIKE 'ABC%' Example that does not work:
14
2339
by: Stegano | last post by:
I am learning C Programming after working with Java for 5 years. I want to know where can I find the source files for C language itself. For example strcat is a function, which concatenates two strings. I want to read how this function is implemented in its native form, where can I find its corresponding .c file. I am using gcc version 3.3.1 (Thread model POSIX) on cygwin with Eclipse IDE. A grep on a function name lists many .h and .c...
10
1668
by: Ray Stevens | last post by:
I am attempting to test a VeriSign account and the setup instructions stated that the certs file needed to go into the Windows\System32 folder. I am getting an error from the code-behind assebly stating it cannot find it in the certs chain and is pointing to a path in C:\Program Files\Microsoft Visual Studio 8\Common 7\IDE. Where should I put the certs folder?
0
1411
by: Jim | last post by:
I am trying to tell Python where it can find some modules it will need when embedded in my app. The convenient way would be to plop a .pth file somewhere Python can find it. I found that the doc is wrong when it says this kind of filecan go anywhere on the python path. It is not found if it goes into the python root dir, or python\lib -- the only place I found it would work was in lib\site-packages. So the next question is, how do I...
22
2355
by: Christopher Nelson | last post by:
I have a little menu system which essentially takes HTML like: <div id='foo'></div> and retrieves foo.shtml from the server and inserts it inside the <div>. But sometimes I'd like foo.shtml to look like: <script language='JavaScript'> ...do something AJAX-y </script>
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10482
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10225
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9072
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.