高分求助:调用webservice出现 “HTTP status 400: Bad Request”
本人作的一个asp.net程序,调用自己的webservice; 在本机正常;迁移到服务器上后,调用webservice时发生异常:
//---------------------------------------------------------------------
Server Error in '/App' Application.
--------------------------------------------------------------------------------
The request failed with HTTP status 400: Bad Request.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The request failed with HTTP status 400: Bad Request.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[WebException: The request failed with HTTP status 400: Bad Request.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +1358
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +205
EduService.TCYWEDUService.CheckValidUser(Int32 pUserType, String pUserName, String pPassword) +95
_Default.Login1_Authenticate(Object sender, AuthenticateEventArgs e) +118
System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +105
System.Web.UI.WebControls.Login.AttemptLogin() +106
System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +165
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5609
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
注:因服务器上有一另外一网站独占80端口,所以我的程序使用8080端口,但在我本机也是设置8080端口的,没有问题。
google搜了很多结果出来,可能是受台湾地震影响,就是没一个页面能访问。百度没有,csdn全文检索也没有满意的答案。劳烦有解决方案的兄台赐教!