Silverlight幻灯片+ WCF? [英] Silverlight Slideshow + WCF ?

查看:77
本文介绍了Silverlight幻灯片+ WCF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我下载了此Silverlight项目,以便在我的ASP Web项目中使用它.

http://designwithsilverlight.com/?p=162


幻灯片放映在其项目中使用WCF方法可以正常工作,该方法从我的数据库返回img url.

但是当我将XAP文件和html测试页添加到我的Web项目中时,没有加载img.

有什么主意吗?

当我在Silverlight WebHost项目的外部使用wbeservice \ WCF作为Webreference时,出现此错误:

尝试向URI''localhost:25573/WebService1.asmx''发出请求时发生错误,这可能是由于尝试在没有适当的跨域策略的情况下以跨域方式访问服务所致,或者您可能需要联系服务的所有者以发布跨域策略文件,并确保它允许发送与SOAP相关的HTTP标头.此错误也可能是由于在Web服务代理中使用内部类型而不使用InternalsVisibleToAttribute属性而引起的.请参阅内部异常以获取更多详细信息. –

Hi ,

I downloaded this Silverlight project in order to use it on my asp webproject .

http://designwithsilverlight.com/?p=162


The slide show works fine inside its project with WCF methode that returns the img url from my database .

but when I add the XAP file and the html test page to my web project , no img loaded .

any idea ?

when I use wbeservice\WCF outside from the Silverlight WebHost project as the webreference i''m getting this error :

An error occurred while trying to make a request to URI''localhost:25573/WebService1.asmx''.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. –

推荐答案

确保将启动设置为html测试页.
您可以右键单击该文件并设置为启动".
Make sure the startup is set to the html test page.
You can right click on the file and "set as startup".


这篇关于Silverlight幻灯片+ WCF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆