|
-
Apr 6th, 2004, 08:04 AM
#1
Thread Starter
Hyperactive Member
sendin 16meg images over soap
Hello,
I'm writing an image conversion web service. the idea is that the client can either:
A) send up an image to be converted to a different format and then sent back
B) request an image held on the webservies server, which is then sent down to the client in the requested format.
Both of these functionality work, but not for big files.
If i try A) with a 16.5mb tif then i get the following exception
Code:
'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded.
'BBWSC': Loaded 'C:\DEV\BBWSC\BBWSC\bin\Debug\BBWSC.exe', Symbols loaded.
'BBWSC.exe': Loaded 'c:\windows\assembly\gac\system.windows.forms\1.0.5000.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded.
'BBWSC.exe': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c561934e089\system.dll', No symbols loaded.
'BBWSC.exe': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
'BBWSC.exe': Loaded 'c:\windows\assembly\gac\system.web.services\1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll', No symbols loaded.
'BBWSC.exe': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b77a5c561934e089\system.xml.dll', No symbols loaded.
'BBWSC.exe': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll', No symbols loaded.
'BBWSC.exe': Loaded 'p85zc4aj', No symbols loaded.
An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in system.web.services.dll
Additional information: System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. ---> System.Web.HttpException: Maximum request length exceeded.
at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.get_InputStream()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
--- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
The program '[3128] BBWSC.exe' has exited with code 0 (0x0).
I've done a quick google and one suggestion i've seen is to alter the request limit in the web service. but i'm not sure what to
-
Apr 6th, 2004, 06:58 PM
#2
PowerPoster
There was an exception running the extensions specified in the config file. ---> System.Web.HttpException: Maximum request length exceeded.
That says to adjust it in the config file. Have you looked that up?
Here, try this:
In the Web.config file, override the value of maxRequestLength for the application. For example, the following entry in Web.config allows files that are less than or equal to 8 megabytes (MB) to be uploaded:
<httpRuntime maxRequestLength="8192" />
Which I found at this site:
http://support.microsoft.com/default...;en-us;Q295626
-
Apr 7th, 2004, 07:05 AM
#3
Thread Starter
Hyperactive Member
hmm cheers for the tip
I added that element in the web.config. rebuilt and tried to send a tif under 8 meg and it gave the same error.
which is annoying. all i want to do is send images around the 16 meg size.
strangely i've noticed that whilst if i send a 16 meg image to the service it errors BUT if i request a 16meg image from the server then it send it to the client fine.
One thing i was thinking is that, is it pointless setting the web.config to take a biiger file whilst the machine.config is still limited. which one takes precedence?
-
Apr 7th, 2004, 10:14 AM
#4
PowerPoster
The web.config will take precedence.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|