이것은 실망 스럽습니다 ... 저는 웹 서비스에 준거입니다. Microsoft 웹 서비스에서 SOAP에 MTOM 인코딩을 사용하기 위해 Microsoft WSE 3.0을 사용하는 방법을 이해할 수없는 이유를 정말로 이해하지 못합니다. 내가 추가하는의 app.config에 같은 추가MTOM이 활성화되어 "최대 요청 길이를 초과했습니다." 여전히
<configuration>
<configSections>
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</configSections>
<system.web>
<httpRuntime maxRequestLength="134217728" executionTimeout="300"/>
<webServices>
<soapExtensionImporterTypes>
<add type="Microsoft.Web.Services3.Description.WseExtensionImporter, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</soapExtensionImporterTypes>
<soapServerProtocolFactory type="Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</webServices>
<compilation>
<assemblies>
<add assembly="Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
</system.web>
<microsoft.web.services3>
<messaging>
<mtom serverMode="always" />
<maxMessageLength value="134217728" />
</messaging>
</microsoft.web.services3>
</configuration>
클라이언트 측 : 서버 내 라이브러리에
의 Web.config와의 app.config : 나는 내 웹 서비스에 다음을 추가 한 clientMode = "On"입니까?
40MB 파일을 업로드하려고하면 "최대 요청 길이를 초과했습니다"라는 일반적인 오류가 표시됩니다.
설명이 있으십니까? 해당 구성을 사용하도록 전송 장치에 알려야합니까? 어떻게해야합니까? 감사!
당신은 나의 영웅입니다! 이 일을 3 일 동안 똑바로 해! 사랑해! 정말 고맙습니다! – Tizz
'Views' 폴더 안에있는 파일 대신'Web.config' 파일에이 파일을 추가했는지 확인하십시오. –