473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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
(maxrequestlength) 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 #1
10 1926
Most of us know how you feel. Have you tried this web search term...

maxrequestlength site:msdn2.microsoft.com
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"salty" <sa***@discussions.microsoft.comwrote in message
news:31**********************************@microsof t.com...
... 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
(maxrequestlength) 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 #2
Trust me, I do understand.

Your options vary depending on your environment.

If you are a Microsoft MSDN member, your support levels are a bit higher
in the newsgroups, but you must remember to use your assigned email suffix
(I'm assuming these busy folks have filters setup to help take care of the
MSDN members promptly). Responses are on a voluntary basis, but I've found
some of the best responses here.

If you are a preferred Microsoft customer, and have access to the Enterprise
portal, then you can open a set number of support tickets with Microsoft
developers. My experience with this has been poor, but your mileage may
vary.

From there, it becomes a balance of what an "arm and a leg" are worth. ;)
The pay-per-call incidents can help out if you have a very complicated question
or process you are working through. They're single charge and remain open
until you have the answer YOU seek. We've opened one of these up for some
tricky MCMS work and were quite satisified.

Finally, one source that may not be QUITE as useful, but has lead me down
the right path for a few occassions is O'Reilly's new code search engine
(http://labs.oreilly.com/code/) and the specialized searches through Google
(specifically Microsoft's (http://www.google.com/microsoft.html), through
Clinton's example can provide the same results if you know the site).

Past that, as I said, I do understand and ask if you find the shining font
of knowledge, to please share. :D

-dl

--
David Longnecker
Web Developer
Wichita Public Schools, USD 259
... 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 (maxrequestlength) 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 #3
Not that exact search, but similar. It gives me the same pages I've already
read. Three times. :^)

Thanks, Clinton.
"clintonG" wrote:
Most of us know how you feel. Have you tried this web search term...

maxrequestlength site:msdn2.microsoft.com
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP 43°2'17"N 88°2'37"W : 43°2'17"N 88°2'37"W

"salty" <sa***@discussions.microsoft.comwrote in message
news:31**********************************@microsof t.com...
... 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
(maxrequestlength) 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 #4
Do you have a specific question ?

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***@discussions.microsoft.comwrote in message
news:31**********************************@microsof t.com...
... 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
(maxrequestlength) 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 #5
"Juan T. Llibre" wrote:
Do you have a specific question ?
Yes. I asked it on the 21st, and got no responses.

But since you asked... :) I'll repost it here.

It was titled, "Setting MaxRequestLength in the page."

I'm running into the notorious 4MB upload limit. I see where one answer is
to set a higher limit to the httpRunTime MaxRequestLength setting in
web.config. However this affects the whole application, and if I'm going to
increase this limit, I'd rather only increase it for the one page that needs
it, the one with the FileUpload controls.

So it was great to see the .NET Framework 2.0 now allegedly supports this in
the page. I tried it (the application is set to the 2.0 Framework,, and
I'm using VS2005). I removed the setting in web.config so that all pages
would default to the 4MB limit. Then, on my page with the FileUpload
controls, I added the following code:

<%@ import Namespace="System.Web.Configuration" %>

Dim httpConfig As HttpRuntimeSection = New HttpRuntimeSection

Sub Page_Load()
httpConfig.MaxRequestLength = 8192
... other code to handle the uploading ...
End Sub

However, it doesn't seem to work. I still get the "Maximum request length
exceeded" errors when I upload a file larger than 4MB.

Am I implementing this properly, or am I missing something?

-Robert-

Sep 25 '06 #6
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.

AFAIK, you can only set MaxRequestLength in :

1. Machine.config
2. Root-level Web.config
3. Application-level Web.config
4. Virtual or physical directory-level Web.config

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


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***@discussions.microsoft.comwrote in message
news:7E**********************************@microsof t.com...
"Juan T. Llibre" wrote:
>Do you have a specific question ?

Yes. I asked it on the 21st, and got no responses.

But since you asked... :) I'll repost it here.

It was titled, "Setting MaxRequestLength in the page."

I'm running into the notorious 4MB upload limit. I see where one answer is
to set a higher limit to the httpRunTime MaxRequestLength setting in
web.config. However this affects the whole application, and if I'm going to
increase this limit, I'd rather only increase it for the one page that needs
it, the one with the FileUpload controls.

So it was great to see the .NET Framework 2.0 now allegedly supports this in
the page. I tried it (the application is set to the 2.0 Framework,, and
I'm using VS2005). I removed the setting in web.config so that all pages
would default to the 4MB limit. Then, on my page with the FileUpload
controls, I added the following code:

<%@ import Namespace="System.Web.Configuration" %>

Dim httpConfig As HttpRuntimeSection = New HttpRuntimeSection

Sub Page_Load()
httpConfig.MaxRequestLength = 8192
... other code to handle the uploading ...
End Sub

However, it doesn't seem to work. I still get the "Maximum request length
exceeded" errors when I upload a file larger than 4MB.

Am I implementing this properly, or am I missing something?

-Robert-


Sep 25 '06 #7
How to control the size of file uploaded to the web server?
While uploading a file to the web server, we have a limit of 4MB by default. We can either decrease or increase this value. The
value is set in the key, maxRequestLength of machine config file.

There is a maxRequestLength limit in the machine.config file (look for the <system.websection), in the httpRuntime settings that
you need to alter/raise if you want to accept anything larger than 4Mb. These are the standard settings for the httpRuntime:

<httpRuntime executionTimeout="90" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>

"salty" <sa***@discussions.microsoft.comwrote in message news:7E**********************************@microsof t.com...
"Juan T. Llibre" wrote:
>Do you have a specific question ?

Yes. I asked it on the 21st, and got no responses.

But since you asked... :) I'll repost it here.

It was titled, "Setting MaxRequestLength in the page."

I'm running into the notorious 4MB upload limit. I see where one answer is
to set a higher limit to the httpRunTime MaxRequestLength setting in
web.config. However this affects the whole application, and if I'm going to
increase this limit, I'd rather only increase it for the one page that needs
it, the one with the FileUpload controls.

So it was great to see the .NET Framework 2.0 now allegedly supports this in
the page. I tried it (the application is set to the 2.0 Framework,, and
I'm using VS2005). I removed the setting in web.config so that all pages
would default to the 4MB limit. Then, on my page with the FileUpload
controls, I added the following code:

<%@ import Namespace="System.Web.Configuration" %>

Dim httpConfig As HttpRuntimeSection = New HttpRuntimeSection

Sub Page_Load()
httpConfig.MaxRequestLength = 8192
... other code to handle the uploading ...
End Sub

However, it doesn't seem to work. I still get the "Maximum request length
exceeded" errors when I upload a file larger than 4MB.

Am I implementing this properly, or am I missing something?

-Robert-

Sep 26 '06 #8
"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 MaxRequestLength can be done at the page level ?
Here:
http://msdn2.microsoft.com/en-us/lib...estlength.aspx

MaxRequestLength is a public property of the HttpRuntimeSection Class
described here:
http://msdn2.microsoft.com/en-us/lib...n_members.aspx

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

Sep 26 '06 #9
Thank you, Jon. But I don't want to increase the file upload sizes for the
whole web site, or even for the whole application, just a single page. And
according to the MS documentation for ASP.NET 2.0 (please see the links I
gave in my reply above to Juan), it can be done in the page. Or am I reading
that incorrectly? It sure looks like VB code to me, and not web.config XML
code.

-Robert-
"Jon Paal" wrote:
How to control the size of file uploaded to the web server?
While uploading a file to the web server, we have a limit of 4MB by default. We can either decrease or increase this value. The
value is set in the key, maxRequestLength of machine config file.

There is a maxRequestLength limit in the machine.config file (look for the <system.websection), in the httpRuntime settings that
you need to alter/raise if you want to accept anything larger than 4Mb. These are the standard settings for the httpRuntime:

<httpRuntime executionTimeout="90" maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false" minFreeThreads="8"
minLocalRequestFreeThreads="4" appRequestQueueLimit="100"/>

"salty" <sa***@discussions.microsoft.comwrote in message news:7E**********************************@microsof t.com...
"Juan T. Llibre" wrote:
Do you have a specific question ?
Yes. I asked it on the 21st, and got no responses.

But since you asked... :) I'll repost it here.

It was titled, "Setting MaxRequestLength in the page."

I'm running into the notorious 4MB upload limit. I see where one answer is
to set a higher limit to the httpRunTime MaxRequestLength setting in
web.config. However this affects the whole application, and if I'm going to
increase this limit, I'd rather only increase it for the one page that needs
it, the one with the FileUpload controls.

So it was great to see the .NET Framework 2.0 now allegedly supports this in
the page. I tried it (the application is set to the 2.0 Framework,, and
I'm using VS2005). I removed the setting in web.config so that all pages
would default to the 4MB limit. Then, on my page with the FileUpload
controls, I added the following code:

<%@ import Namespace="System.Web.Configuration" %>

Dim httpConfig As HttpRuntimeSection = New HttpRuntimeSection

Sub Page_Load()
httpConfig.MaxRequestLength = 8192
... other code to handle the uploading ...
End Sub

However, it doesn't seem to work. I still get the "Maximum request length
exceeded" errors when I upload a file larger than 4MB.

Am I implementing this properly, or am I missing something?

-Robert-


Sep 26 '06 #10
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 MaxRequestLength 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 HttpRuntimeSection = New HttpRuntimeSection
lblMaxRequestLength.Text = httpConfig.MaxRequestLength
httpConfig.MaxRequestLength = 8192
lblMaxRequestLength2.Text = httpConfig.MaxRequestLength
End Sub

Sub Button1_Click(sender As Object, e As EventArgs)

If FileUpLoad1.HasFile
FileUpLoad1.SaveAs("C:\" & FileUpLoad1.Filename)
Label1.Text = "Received " & FileUpLoad1.FileName & " Content Type " _
& FileUpLoad1.PostedFile.ContentType & " Length " & FileUpLoad1.PostedFile.ContentLength
Else
Label1.Text = "No file was uploaded"
End If
End Sub

When the page loads, lblMaxRequestLength reports that MaxRequestLength is 4096,
and lblMaxRequestLength2 reports that MaxRequestLength ( 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***@discussions.microsoft.comwrote in message
news:30**********************************@microsof t.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 MaxRequestLength can be done at the page level ?

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

MaxRequestLength is a public property of the HttpRuntimeSection Class
described here:
http://msdn2.microsoft.com/en-us/lib...n_members.aspx

Unless I'm completely misunderstanding 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
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...
5
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....
2
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...
15
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
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...
4
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: ...
14
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...
10
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...
0
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...
22
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...

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.