Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 change it to?

  • 2 weeks later...
Posted
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 change it to?

 

 

Well you basically need to set it to a value for the maximum image size you wish to allow someone to try and use. You need to take in consideration who is going to be using the service and what kind of connections they will have as well as expected traffic. You don't want to overload you connection but you also don't want the client to wait 30 minutes for the image to upload.

 

Other than that its pretty much a judgement call on your part.

I wouldn't recommend anything voer 10 megs personally.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...