I'm currently having a problem with Silverlight using WCF. When I run my project I get a weird error which is not telling me much. It's some sort of problem with calling a service. After some searching I tried a couple of things, like this site or this one , but the info there couldn't help me fix my problem. When I go to the service in the browser, I get no problems, it shows the service and the wsdl correctly so don't really know what the problem is here. Anyone encountered and/or fixed this before?
The full error report is:
Microsoft JScript runtime error: Sys.InvalidOperationException: ManagedRuntimeError error #4002 in control 'ctl00_cphContent_Silverlight': System.Exception: [AsyncCallbackException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.30226.2&File=System.ServiceModel.dll&Key=AsyncCallbackException ---> System.Exception: [AsyncCallbackException]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.30226.2&File=System.ServiceModel.dll&Key=AsyncCallbackException ---> System.Reflection.TargetInvocationException: [Async_ExceptionOccurred]
Arguments:
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.30226.2&File=System.dll&Key=Async_ExceptionOccurred ---> System.ServiceModel.ProtocolException: [UnexpectedHttpResponseCode]
Arguments:Not Found
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.30226.2&File=System.ServiceModel.dll&Key=UnexpectedHttpResponseCode
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 Project_Dolmen_SL_BO.CategoryServiceReference.CategoryServiceClient.CategoryServiceClientChannel.EndGetCategories(IAsyncResult result)
at Project_Dolmen_SL_BO.CategoryServiceReference.CategoryServiceClient.Project_Dolmen_SL_BO.CategoryServiceReference.ICategoryService.EndGetCategories(IAsyncResult result)
at Project_Dolmen_SL_BO.CategoryServiceReference.CategoryServiceClient.OnEndGetCategories(IAsyncResult result)
at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
--- End of inner exception stack trace ---
at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
at Project_Dolmen_SL_BO.CategoryServiceReference.GetCategoriesCompletedEventArgs.get_Result()
at Project_Dolmen_SL_BO.Controller.SilverlightController.client_GetCategoriesCompleted(Object sender, GetCategoriesCompletedEventArgs e)
at Project_Dolmen_SL_BO.CategoryServiceReference.CategoryServiceClient.OnGetCategoriesCompleted(Object state)
at System.ServiceModel.ClientBase`1.AsyncOperation.Post(SendOrPostCallback d, Object arg)
at System.ServiceModel.ClientBase`1.AsyncOperation.PostOperationCompleted(SendOrPostCallback d, Object arg)
at System.ServiceModel.ClientBase`1.CompleteAsyncCall(AsyncOperationContext context, Object[] results, Exception error)
at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
--- End of inner exception stack trace ---
at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously, Exception exception)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.CallComplete(Boolean completedSynchronously, Exception exception)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishSend(IAsyncResult result, Boolean completedSynchronously)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.SendCallback(IAsyncResult result)
at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
--- End of inner exception stack trace ---
at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously, Exception exception)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.OnGetResponse(IAsyncResult result)
at System.Net.BrowserHttpWebRequest.Failed(Object sender, EventArgs e)
at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)