远程服务器返回错误:(400)错误请求。

时间:2013-07-17 14:56:06

标签: wcf

我创建了一个云应用程序,其中有一个Web角色和一个WCF服务,它正被Web角色使用。

当我使用流服务使用此服务将图片插入blob时,它会给出错误,因为远程服务器返回错误:(400)错误请求。

即使更改客户端和服务器端的webconfig也无济于事。 如果我更新服务,客户端Web角色,configuration.svcinfo,configuration91.svcinfo将使用默认值更新,即使服务web.config更新为最大值。

我已经尝试了与此错误有关的所有事情。但是在2天后我仍然处于同一位置。

发生的错误是: -

**Line 85:         [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
Line 86:         WebRole1.ServiceReference1.UploadFileResponse WebRole1.ServiceReference1.ITransferService.UploadFile(WebRole1.ServiceReference1.RemoteFileInfo request) {
Line 87:             return base.Channel.UploadFile(request);
Line 88:         }
Line 89:             
Source File: D:\faltu\WcfMathServiceLibrary\WebRole1\Service References\ServiceReference1\Reference.cs Line: 87 
Stack Trace: 

[WebException: The remote server returned an error: (400) Bad Request.]
   System.Net.HttpWebRequest.GetResponse() +6120419
   System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +48
[ProtocolException: The remote server returned an unexpected response: (400) Bad Request.]
   System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +9442991
   System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +345
   WebRole1.ServiceReference1.ITransferService.UploadFile(RemoteFileInfo request) +0
   WebRole1.ServiceReference1.TransferServiceClient.WebRole1.ServiceReference1.ITransferService.UploadFile(RemoteFileInfo request) in D:\faltu\WcfMathServiceLibrary\WebRole1\Service References\ServiceReference1\Reference.cs:87
   WebRole1.ServiceReference1.TransferServiceClient.UploadFile(String FileName, Int64 Length, Stream FileByteStream) in D:\faltu\WcfMathServiceLibrary\WebRole1\Service References\ServiceReference1\Reference.cs:95
   WebRole1._Default.btnUpload_Click(Object sender, EventArgs e) in D:\faltu\WcfMathServiceLibrary\WebRole1\Default.aspx.cs:29
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563**   

请告诉我这是什么问题。

0 个答案:

没有答案