本文介绍了远程服务器返回意外响应:(400)错误请求。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我在将excel文件上传到server.i时收到了上述错误。我在网上搜索解决方案,但我没有得到正确答案。请帮助我解决我的问题。 这是我的应用程序web.config文件。 < bindings> < basicHttpBinding> < binding name = BasicHttpBinding_CommercialLoan closeTimeout = 00:10:00 openTimeout = 00:10:00 receiveTimeout = 00:10:00 sendTimeout = 00:10:00 allowCookies = false bypassProxyOnLocal = false hostNameComparisonMode = StrongWildcard maxBufferSize = 2147483647 maxBufferPoolSize = 2147483647 m axReceivedMessageSize = 2147483647 messageEncoding = Text textEncoding = utf-8 transferMode = 缓冲 useDefaultWebProxy = true > < readerQuotas maxDepth = 32 maxStringContentLength = 8192 maxArrayLength = 16384 maxBytesPerRead = 4096 maxNameTableCharCount = 16384 /> < security mode = 无 > < transport clientCredentialType = 无 proxyCredentialType = 无 realm = /> < message clientCredentialType = UserName algorithmSuite = 默认 /> < / 安全 > < / binding > 解决方案 您可以先使用WcfTestClient工具测试wcf服务。然而,总是很难找到因为m 喜欢让人们忙于处理琐碎的任务,比如搜索文件,设置,病毒和特洛伊木马而不是为你处理这些任务。 作为提示,你可能会在这里找到它: C:\Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \IDE\WcfTestClient.exe C:\Program Files \ Microsoft Visual Studio 9.0 \ Common7 \IDE \WcfTestClient .exe 当然需要Visual Studio! https://msdn.microsoft.com/en-us/library/bb552364%28v = vs.110%29.aspx [ ^ ] 祝你好运! I have received the above error when uploading excel file to server.i search the solution in internet but i didn't get proper answer. pls help me to solve my problem.this is my application web.config file.<bindings> <basicHttpBinding> <binding name="BasicHttpBinding_CommercialLoan" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="None"> <transport clientCredentialType="None" proxyCredentialType="None" realm="" /> <message clientCredentialType="UserName" algorithmSuite="Default" /> </security> </binding> 解决方案 You can test the wcf service first using the WcfTestClient tool. It is however, always a pain to find because mlikes to keep people busy with trivial tasks like searching for files, settings, virusses and trojans instead of handling those for you.As a hint you might find it somewhere here:C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\WcfTestClient.exeC:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\WcfTestClient.exeVisual Studio required of course!https://msdn.microsoft.com/en-us/library/bb552364%28v=vs.110%29.aspx[^]Good luck! 这篇关于远程服务器返回意外响应:(400)错误请求。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-02 17:50