Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug The remote server returned an error: NotFound.
8 replies. Latest Post by anil_litam on October 27, 2009.
(0)
vijaycit
Member
4 points
10 Posts
10-20-2009 3:32 AM |
If i have bind the 2500 records its working fine....'
if increase the datas, its show the error The remote server returned an error: NotFound.
i have get the datas from wcf service
how to solve this probs
System.ServiceModel.CommunicationException was unhandled by user code Message="The remote server returned an error: NotFound." StackTrace: at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result) at System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result) at TEST.WCFSERVICE.WCFClient.WCFClientChannel.EndGetDataDictionary(IAsyncResult result) at TEST.WCFSERVICE.WCFClient.TEST.WCFSERVICE.WCF.EndGetDataDictionary(IAsyncResult result) at TEST.WCFSERVICE.WCFClient.OnEndGetDataDictionary(IAsyncResult result) at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result) InnerException: System.Net.WebException Message="The remote server returned an error: NotFound." StackTrace: at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state) at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result) InnerException: System.Net.WebException Message="The remote server returned an error: NotFound." StackTrace: at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState) at System.Net.Browser.AsyncHelper.<>c__DisplayClass2.<BeginOnUI>b__0(Object sendState) InnerException:
mrjvdveen
Participant
1937 points
366 Posts
10-20-2009 3:37 AM |
The NotFound error only indicates that the WCF service encountered some exception, which it isn't allow to propagate to the client. Try and debug your service, enable tracing or enable extended error information on your WCF service to get a better exception.
Based on your description the response is getting to big and your machine isn't setup for that.
HTH.
10-20-2009 3:53 AM |
Got the error in selected area...
public System.Collections.ObjectModel.ObservableCollection<System.Collections.Generic.Dictionary<string, object>> EndGetDataDictionary(System.IAsyncResult result) { object[] _args = new object[0]; System.Collections.ObjectModel.ObservableCollection<System.Collections.Generic.Dictionary<string, object>> _result = ((System.Collections.ObjectModel.ObservableCollection<System.Collections.Generic.Dictionary<string, object>>)(base.EndInvoke("GetDataDictionary", _args, result))); return _result; }
10-20-2009 4:04 AM |
i have update config also...
<httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"/>
but its not solved
10-20-2009 7:38 AM |
i got the below trace file
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>131075</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2009-10-20T11:33:39.7136620Z" /><Source Name="System.ServiceModel" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="SvcConfigEditor" ProcessID="3840" ThreadID="1" /><Channel /><Computer>JIT011</Computer></System><ApplicationData><TraceData><DataItem><TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing an exception.</Description><AppDomain>SvcConfigEditor.exe</AppDomain><Exception><ExceptionType>System.InvalidOperationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not find interface in the Assembly</Message><StackTrace>at System.ServiceModel.ComIntegration.TypeCacheManager.FindOrCreateType(Guid iid, Type& interfaceType, Boolean noAssemblyGeneration, Boolean isServer)at System.ServiceModel.ComIntegration.TypeCacheManager.VerifyType(Guid iid)at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)at Microsoft.Tools.ServiceModel.ConfigurationEditor.ComPlusTypeValidator.DoFetchInterfaceMethods(ComAdminInterfaceInfo interfaceInfo)at Microsoft.Tools.ServiceModel.ConfigurationEditor.ComPlusTypeValidator.VerifyInterface(ComAdminInterfaceInfo interfaceInfo)at Microsoft.Tools.ServiceModel.ConfigurationEditor.UI.ComPlusIntegrationInterfaceSelectionPage.CreateComponentNode(ComAdminClassInfo componentInfo)at Microsoft.Tools.ServiceModel.ConfigurationEditor.UI.ComPlusIntegrationInterfaceSelectionPage.CreateApplicationNode(ComAdminAppInfo appInfo)at Microsoft.Tools.ServiceModel.ConfigurationEditor.UI.ComPlusIntegrationInterfaceSelectionPage.ComPlusIntegrationInterfaceSelectionPage_Load(Object sender, EventArgs e)at System.Windows.Forms.UserControl.OnLoad(EventArgs e)at System.Windows.Forms.UserControl.OnCreateControl()at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)at System.Windows.Forms.Control.CreateControl()at System.Windows.Forms.Control.ControlCollection.Add(Control value)at Microsoft.Tools.ServiceModel.ConfigurationEditor.UI.WizardForm.set_CurrentStep(WizardStep value)at Microsoft.Tools.ServiceModel.ConfigurationEditor.UI.WizardForm.AddWizardStep(String key, WizardPage wizardPage)at Microsoft.Tools.ServiceModel.ConfigurationEditor.UI.WizardForm.WizardForm_Load(Object sender, EventArgs e)at System.Windows.Forms.Form.OnLoad(EventArgs e)at System.Windows.Forms.Form.OnCreateControl()at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)at System.Windows.Forms.Control.CreateControl()at System.Windows.Forms.Control.WmShowWindow(Message& m)at System.Windows.Forms.Control.WndProc(Message& m)at System.Windows.Forms.ScrollableControl.WndProc(Message& m)at System.Windows.Forms.ContainerControl.WndProc(Message& m)at System.Windows.Forms.Form.WmShowWindow(Message& m)at System.Windows.Forms.Form.WndProc(Message& m)at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)at System.Windows.Forms.Control.SetVisibleCore(Boolean value)at System.Windows.Forms.Form.SetVisibleCore(Boolean value)at System.Windows.Forms.Control.set_Visible(Boolean value)at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)at System.Windows.Forms.Application.RunDialog(Form form)at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)at System.Windows.Forms.Form.ShowDialog()at Microsoft.Tools.ServiceModel.ConfigurationEditor.UI.MainForm.fileIntegrateComApplicationToolStripMenuItem_Click(Object sender, EventArgs e)at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)at System.Windows.Forms.Control.WndProc(Message& m)at System.Windows.Forms.ScrollableControl.WndProc(Message& m)at System.Windows.Forms.ToolStrip.WndProc(Message& m)at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)at System.Windows.Forms.Application.Run(Form mainForm)at Microsoft.Tools.ServiceModel.ConfigurationEditor.Program.Main(String[] args)</StackTrace><ExceptionString>System.InvalidOperationException: Could not find interface in the Assembly</ExceptionString></Exception></TraceRecord></DataItem></TraceData></ApplicationData></E2ETraceEvent>
10-21-2009 3:11 AM |
This is not an exception from your service, but from some Microsoft config tool for your service.
RyanFerg
7 points
5 Posts
10-21-2009 1:36 PM |
This is most likley an exception being thrown because the data being returned by the service is too large. I have had this same problem around 3000 records (depending on the size). If I remember correctly, the solution is to add the following to the <system.serviceModel> part of the web.config file:
<bindings> <basicHttpBinding> <binding name="ServicesBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"> <readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" /> </binding> </basicHttpBinding> </bindings>
Please let me know if this does not solve the problem, I will look further to see if there was anything else I had to change. Ryan
Mog Lian...
All-Star
15854 points
1,541 Posts
10-27-2009 5:51 AM |
Hi,
The problem is due to exceed maxItemsInObjectGraph setting.
For details, please check this thread
http://forums.silverlight.net/forums/t/136918.aspx
Thanks,
anil_litam
556 points
261 Posts
10-27-2009 5:59 AM |
Adding the following lines in your web.config will solve your issue
<system.runtime.serialization> <datacontractserializer maxItemsInObjectGraph="100000" /> </system.runtime.serialization>