我有一個我想在Silverlight中使用的名爲GetDataWorkflowService.xamlx的worflow服務。如何在Silverlight中訪問工作流服務?
當我向我的應用程序添加一個服務引用時,它會給出一條消息'This Operation is not supported for the relative URI'。但是,它仍然增加了參考。
當我使用referece:
Servicelient proxy=new ServiceClient();
proxy.GetDataCompleted += (o, a) => Debug.WriteLine("Result is " + a.Result);
proxy.GetDataAsync(123);
我得到以下錯誤:
An error occurred while trying to make a request to URI 'http://localhost:1234/GetDataWorkflowService.xamlx'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details.
我不明白髮生了什麼。
「請參閱內部例外瞭解更多詳情。」什麼是內在的例外? – Will