473,890 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can not upload large files (>2 megs) to image field. "Cannot find server" message returned...

Hi:

I'm using the HTML File Field control as a file picker for uploading files
to a SQl Server image field. When page posts back to initiate upload, if
file is small (under about two megs) all is well. However, when I select a
large file, the default IIS "Cannot find server" page is immediately
returned. Weird???

Thanks,
Charlie
Nov 19 '05 #1
1 2144
You probably need to increase the value of maxRequestLengt h in the
<httpRuntime> element of your config file.

http://msdn.microsoft.com/library/de...imesection.asp

You should be able to find a lot of information about this on the web.
For example:
http://weblogs.asp.net/mhawley/archi...11/129824.aspx
Joshua Flanagan
http://flimflan.com/blog

Charlie@CBFC wrote:
Hi:

I'm using the HTML File Field control as a file picker for uploading files
to a SQl Server image field. When page posts back to initiate upload, if
file is small (under about two megs) all is well. However, when I select a
large file, the default IIS "Cannot find server" page is immediately
returned. Weird???

Thanks,
Charlie

Nov 19 '05 #2

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

Similar topics

0
299
by: FGMer | last post by:
I am in a desparate situation and I need help. I have two servers one for the SQL DB and another for the ASP.Net code. I currently use my desktop to connect to the Application code and then edit it from there. I frequently copy and paste my code to a Backup folder on the server. I have set up Visual Studio so that I have One solution file and three project files. The Main Project file call functions for the other two Project files.
1
875
by: Leonard Danao | last post by:
I get this error when i run my code below "An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The remote server returned an error: (401) Unauthorized." I am attempting to access a secure https site which 1-the site gives you your own certificate to use to access the site 2-a uname/password challenge i am not sure if it is basic or digest but i
2
5711
by: edsuslen | last post by:
I am migrating working code (HTTPRequest with Authentication) from vb to vb.net vb: Set objXMLHTTPServer = New MSXML2.XMLHTTP30 objXMLHTTPServer.Open strMethod, strGetRequest, False, "UserId", "Password" objXMLHTTPServer.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" ....
3
7078
by: alex | last post by:
Hi, I am having an image list with a set of icons i want to use in my application. when using Me.control.Icon = iconList.Images(1) i get the error message Value of type 'System.Drawing.Image' cannot be converted to 'System.Drawing.Icon'.
3
39833
by: Nilay Shah | last post by:
Hi, I am trying to connect to web page using following code: client = new WebClient(); strURL = ConfigurationSettings.AppSettings .ToString(); client.DownloadFile (strURL,ConfigurationSettings.AppSettings .ToString());
4
16031
by: Haxan | last post by:
Hi, Im testing a web service from my windows app in C#. I create a soap body and pass to the HttpWebRequest and then get the response as below. private void TestService() { string quotes = "\""; // Set the uri to send the request to
0
1908
by: =?Utf-8?B?R2VvcmdlIFNodWk=?= | last post by:
I have a folder structure such like this. A ---A1 -----a1.aspx ---A2 A1 and A2 are the subfolder of A. And under the A1 folder, it contains one aspx file named a1.aspx. I set the IIS virtual dictionary to A folder. And IIS has allowed annoymous access. But when I use following code to access the webpage and I got the error" The
3
11233
by: Coll | last post by:
I inherited a database. On one of the forms, a bunch of fields on the form are to be updated with data from a combo box containing many columns after one particular field is updated. I'm receiving an error message "Field cannot be a zero length string." I do have some records with null values for a few fields - no way around that. How can I prevent the error message from occurring? Here's a sample of the code... Me! = Me!.Column(9) Me!...
3
25818
by: Learning.Net | last post by:
Hi All, I have an windows application created in C# &it is running fine on several of our customer. It does a httpWebrequest in the background. Everything was working fine but some customer are facing "The Remote server returned an error :(407) Proxy Authentication Required " {
1
10507
by: .Net Sports | last post by:
I'm using Persits.upload module in ASP, and when i use the following form pointed to the object I've always used, i get a "The system cannot find the file specified" error pointing to the line of my upload.savevirtual : Set Upload = Server.CreateObject("Persits.Upload") upload.savevirtual ("test/") .. ''''error:
1
10910
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
10452
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9618
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
8009
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
5837
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6036
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4667
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
2
4260
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3268
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.