473,569 Members | 2,879 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with HTML control

I'm new to this so I hope I am able to explain my problem.

I have a page with a HTML browse/input button. I browse for a file and
click a button to move a file from my local computer to a server. The
page_init code fires just fine if the file selected for copy is 3 MB
or less. Anything greater causes a Page Not Found error before the
page_init fires. Does anyone know why the file size is an issue?
There is plenty of disk space on the server. I can manually copy the
file without a problem.

Thanks in advance,
Bob
Nov 18 '05 #1
4 1097
Hey Bob,
I have had the same issue. You have to specify in the web.config file what
the max file size would be. If you specify it in the code what the file size
limit is it will get over written by the default value. To get around that
you have to put this tag in the web.config file. Anywhere should be good, as
long as it is within the <system.web> tags.
<httpRuntime
maxRequestLengt h="2934883" 'I believe this is in bytes
executionTimeou t="3600" 'in seconds, if the files are going
to be big I would suggest to put a huge value for timeout.
This should work. Let me know if it doesn't. I will look it up for you.

--Landi

"Bob B" <rj********@yah oo.com> wrote in message
news:3e******** *************** **@posting.goog le.com...
I'm new to this so I hope I am able to explain my problem.

I have a page with a HTML browse/input button. I browse for a file and
click a button to move a file from my local computer to a server. The
page_init code fires just fine if the file selected for copy is 3 MB
or less. Anything greater causes a Page Not Found error before the
page_init fires. Does anyone know why the file size is an issue?
There is plenty of disk space on the server. I can manually copy the
file without a problem.

Thanks in advance,
Bob

Nov 18 '05 #2


Landi,
Thanks. You saved me a ton of time. I searched all day looking for an
answer without sucess.

Thanks again,
Bob

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Hey Bob,
I had the same problem too. Even if you specify in the code what the size
limit would be, .NET over writes it with a default value. To get around this
you have to put this tag in the web.config file.

<httpRuntime
maxRequestLengt h="987784" 'I think this is in bytes.
executionTimeou t="3600" 'seconds. If you are allowing big files
to be uploaded then I would suggest to make this time out big.
/>

Make sure this tag is within the <system.web> tab.
Please let me know if this doesn't work. I can look it up for you.

--Landi

"Bob B" <rj********@yah oo.com> wrote in message
news:3e******** *************** **@posting.goog le.com...
I'm new to this so I hope I am able to explain my problem.

I have a page with a HTML browse/input button. I browse for a file and
click a button to move a file from my local computer to a server. The
page_init code fires just fine if the file selected for copy is 3 MB
or less. Anything greater causes a Page Not Found error before the
page_init fires. Does anyone know why the file size is an issue?
There is plenty of disk space on the server. I can manually copy the
file without a problem.

Thanks in advance,
Bob

Nov 18 '05 #4
http://support.microsoft.com/default.aspx?scid=kb;[LN];295626

Add to your web.config:

<system.web>
<!-- maxsize for uploaded file 100MB KB #295626 -->
<httpRuntime maxRequestLengt h="102400"/>

</system.web>

HTH,
Greg

"Bob B" <rj********@yah oo.com> wrote in message
news:3e******** *************** **@posting.goog le.com...
I'm new to this so I hope I am able to explain my problem.

I have a page with a HTML browse/input button. I browse for a file and
click a button to move a file from my local computer to a server. The
page_init code fires just fine if the file selected for copy is 3 MB
or less. Anything greater causes a Page Not Found error before the
page_init fires. Does anyone know why the file size is an issue?
There is plenty of disk space on the server. I can manually copy the
file without a problem.

Thanks in advance,
Bob

Nov 18 '05 #5

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

Similar topics

7
2490
by: Catherine Jones | last post by:
Hi all we are getting active x component can not create object (Error No. 16) while creating an instance of File System Object in ASP client side script. Could you plz help us in solving this problem. We were working on opening a selected text file at client site and inputing the content. I have pasted the same code bellow of which plz find...
4
1463
by: Scott C. Reynolds | last post by:
Hi. I have created a templated control, and I want to know how i can set it up so that the projects consuming it will have all the same intellisense benefits of using any other server control. It will be used by multiple projects.
1
4043
by: Denise L. Moss-Fritch | last post by:
Has anyone developed context sensitive help for a C# application? According to our programming staff, the development side is not able to provide links without adding hard coded links (topic names) in the user's registry. The latest e-mail we received from development states: "Launching help with a certain topic using a Map ID is not supported...
3
3272
by: trint | last post by:
Ok, I have tried to do this with the System.Web.UI and can't find anything for the webform. It seems much easier for a Winform. Any help in trapping Webform keydown event and keyup event is appreciated. Thanks, Trint
2
2046
by: Daniel | last post by:
I'm new to .Net and all of its abilities so I hope this makes sense. Basically I'm confused on when is the appropriate time to use web forms controls vs. regular HTML. For example in ASP (non-.Net) if I wanted to fill a list it may look something like this: -------START CODE <%
5
3576
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact that for server control component , code is running on the server side. But if I take as example a Label. I place on a webform an HTM label...
1
2134
by: Baiju K.U. | last post by:
Hello I have a serious problem in using the Microsoft HTML Help control for authoring help for my web site. In some machine the control works fine. But in most of the machines it is not working. The page which should show the Tree Control is just showing a (X) mark. I tried with Java applet method, but the result didnt change. Is there any...
53
4640
by: Hexman | last post by:
Hello All, I'd like your comments on the code below. The sub does exactly what I want it to do but I don't feel that it is solid as all. It seems like I'm using some VB6 code, .Net2003 code, and .Net2005 code. I'm developing in vb.net 2005. This test sub just reads an input text file, writing out records to another text file, eliminating...
6
3334
by: AppleBag | last post by:
I'm having the worst time trying to login to myspace through code. Can someone tell me how to do this? Please try it yourself before replying, only because I have asked this a couple of times in the past in other places, and while the help was much appreciated, it seemed everyone just wanted to 'theoretically' explain how to do it, but when I...
0
2836
by: richard12345 | last post by:
Hi Guys I have problem with site I am building. The sidebar with menu and other thinks is overlapping footer. The footer move with the content and but it dos it dos not move with the sidebar. Here is the website: holtz-realty And also the html file and css file. Anny help will by mostly appreciated. I did try everything I can think of. ...
0
7619
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...
1
7681
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...
0
6290
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...
0
5228
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...
0
3662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2118
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1229
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
950
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...

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.