to upload large documents.Below is the error when i try to upload
[WebException: The remote server returned an error: (400) Bad Request.] System.Net.HttpWebRequest.GetResponse() +8521152 System.ServiceModel.Channels.HttpChannelRequest.WaitForReply(TimeSpan timeout) +114 [ProtocolException:
The remote server returned an unexpected response: (400) Bad Request.] System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14489026 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +622 NewWCFClient.ServiceReference1.IService1.UploadFileAsPackets(RemoteFileInfo request) +0 NewWCFClient.ServiceReference1.Service1Client.NewWCFClient.ServiceReference1.IService1.UploadFileAsPackets(RemoteFileInfo request) in c:\Karunakar\Backup12th4PM\NewWCFClient\NewWCFClient\Service References\ServiceReference1\Reference.cs:337 NewWCFClient.ServiceReference1.Service1Client.UploadFileAsPackets(String FileName, Int64 Length, String strDocPath, String strMetadataTags, String strOrderID, String strmetadata, Stream FileByteStream) in c:\Karunakar\Backup12th4PM\NewWCFClient\NewWCFClient\Service References\ServiceReference1\Reference.cs:349 NewWCFClient.UpDownSearch.btnUpload_Click(Object sender, EventArgs e) in c:\Karunakar\Backup12th4PM\NewWCFClient\NewWCFClient\UpDownSearch.aspx.cs:110 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +146 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3586
I need help on this.
Thank you,
KK
Jignesh TrivediPosted Sep 15, 2014, 12:16 AM
Hi,
I thing there is internal unhandled exception occurred at services side...
to know what is error at server side write fault contract...
please refer
http://msdn.microsoft.com/en-us/library/ms752208(v=vs.110).aspx
http://www.codeproject.com/Articles/376303/Fault-Contract-Handling-Errors-in-WCF-and-A-Very-S
hope this will help you.
Ramesh MaruthiPosted Sep 14, 2014, 11:21 PM