Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Silverlight 2 Beta 2
5 replies. Latest Post by theathmtm on June 10, 2008.
(0)
theathmtm
Member
32 points
15 Posts
06-09-2008 10:05 PM |
I had a Silverlight 2 Beta 1 control that was calling a WCF service. Now after upgrading to Beta 2, there is an error being thrown on the AsyncCallback. The crossdomain.xml and clientaccesspolicy.xml haven't been changed.
Here is the error:
System.Reflection.TargetInvocationException was unhandled by user code Message="An exception occurred during the operation, making the result invalid. Check InnerException for exception details." StackTrace: at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at Silverlight.AnalysisViewer.AnalysisConfigurationService.AnalysisConfigurationLoadCompletedEventArgs.get_Result() at Silverlight.AnalysisViewer.Page.AnalysisConfigurationLoadCompleted(Object sender, AnalysisConfigurationLoadCompletedEventArgs e) at Silverlight.AnalysisViewer.AnalysisConfigurationService.AnalysisConfigurationServiceClient.OnAnalysisConfigurationLoadCompleted(Object state) InnerException: System.ServiceModel.ProtocolException Message="The remote server returned an unexpected response: (404) Not Found." 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 Silverlight.AnalysisViewer.AnalysisConfigurationService.AnalysisConfigurationServiceClient.AnalysisConfigurationServiceClientChannel.EndAnalysisConfigurationLoad(IAsyncResult result) at Silverlight.AnalysisViewer.AnalysisConfigurationService.AnalysisConfigurationServiceClient.Silverlight.AnalysisViewer.AnalysisConfigurationService.IAnalysisConfigurationService.EndAnalysisConfigurationLoad(IAsyncResult result) at Silverlight.AnalysisViewer.AnalysisConfigurationService.AnalysisConfigurationServiceClient.OnEndAnalysisConfigurationLoad(IAsyncResult result) at System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)
samcov
Participant
969 points
379 Posts
06-09-2008 11:36 PM |
There are two things you will need to check.
Sam...
06-10-2008 12:12 AM |
How do you allow the use of headers in the cross domain policy in Beta 2?
06-10-2008 12:19 AM |
I updated the CrossDomain.xml to:
<!
</
And removed the clientaccesspolicy.xml and I'm still getting the same exception.
I'm using a standard WCF client:
{
_aisc.AnalysisConfigurationLoadAsync(analysisConfigurationId);
}
06-10-2008 11:06 AM |
Needed to update the ClientAccessPolicy and the CrossDomainPolicy
<