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
Post a Comment