c# - How to fix "MessageEncoder content type parsing is not supported" error when uploading to an asp.net iis server? -


i have app upload image asp.net webservice via soap. works 4mb images , fails following error:

additional information: there exception running extensions specified in config file. ---> maximum request length exceeded.

so made these changes web.config based on stack overflow post, said default max upload size of asp.net 4mb:

<httpruntime maxrequestlength="1048576" /> <requestlimits maxallowedcontentlength="1073741824" /> 

from stackoverflow link

but error:

exception thrown: 'system.platformnotsupportedexception' in mscorlib.ni.dll additional information: messageencoder content type parsing not supported.

if remove changes web.config error goes away.

maxrequestlength value in kilobytes, whilst maxallowedcontentlength in bytes. if change this, sure keep them matching.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -