开发者

Microsoft Dynamics CRM UI: Silverlight WCF Call inside sitemap

开发者 https://www.devze.com 2022-12-08 17:42 出处:网络
I\'ve built a Silverlight Dashboard to be hosted in Dynamics 4.0 UI (sitemap link) - It calls a WCF service which inturn uses Linq to Sql (with a CrmImpersonator) to query the CRM database.It all work

I've built a Silverlight Dashboard to be hosted in Dynamics 4.0 UI (sitemap link) - It calls a WCF service which inturn uses Linq to Sql (with a CrmImpersonator) to query the CRM database. It all works on my Dev machine but when I deploy it to our development server I get the following javascript errors:

"Unhandled Error in Silverlight Application. An Exception occurred during the operation, making the result invalid. Check inner exception for System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary at ...SilverlightDash.CRMObjService.CRMMet开发者_Python百科hodCompletedEventArgs.get_Result at ...MainPage.svc_GetMethod.get_Result(object sender, CRMObjService.GetValueCompletedEventArgs e)

I have enabled anonymous access to see if the wsdl is available from the ISV folder which it is - Please help :)


Well I found the answer or rather two steps:

First step was to alter the silverlight clients service url doh!

But on the way I found that I had to add crossdomain.xml into the root of the Web App (which was hosting the wcf service).

TTFN ... Ashley

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号